Showing 10 of 1,089 results.

Laravel 5 String Helpers: Pluralization and Strings

The plural helper method will attempt to return a plural version of the given $value . It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to...

Laravel String Helper Function: slug

The slug helper method will format the given $title to resemble a URI slug. It does this through a series of steps: Convert the, $title, to ASCII formatting (using the, ascii, function);, Converts whitespace, dashes, underscores to the,...

Laravel Application Helper Function: redirect

redirect($to = null, $status = 302, $headers = [], $secure = null) The redirect helper function is a versatile helper function. The $to parameter is defined with a default value of null . When $to is null , the redirect function by default will...

Laravel Miscellaneous Helper Function: windows_os

windows_os The windows_os helper function can be used to determine if the host server is running a Microsoft Windows® operating system. The function returns either true —if the server is running Windows®—or false —if the server is not running...

Laravel String Helper Function: lower

The lower helper method takes a given value and returns a lower cased variant. The signature for the lower helper function is: lower($value) 1 use Illuminate \ Support \ Str ; 2 3 // all lower cased 4 echo Str :: lower ( ' ALL LOWER CASED ' ) ;

Laravel String Helper Function: is

The is helper method will indicate if the given $value matches the given $pattern . If the $value is the $pattern or if the $value matches the $pattern , the method will return true , otherwise it returns false . The signature for the is helper...

Laravel Array Helper Function: array_sort

sort($array, callable $callback) The sort helper method will allow you to sort the given $array based on some condition returned by the $callback . The method works by iterating over all the values in the $array and passing the values it finds...

Filter Search