Showing 7 of 1,216 result(s)
The str_slug function is a shortcut to calling Str::slug . This function is declared in the global namespace.
The signature of the start method is:
The str_start function is a shortcut to calling Str::start . This function is defined in the global namespace.
This article will look at retrieving a unique list of languages using Laravel helper functions. The following student data will be used: To quickly retrieve a list of all the unique languages all students speak, we can first flatten the array...
This article is a continuation of the Laravel Array Helper Function: array_collapse article. The collapse (defined in the Illuminate\Support\Arr helper class) method will also work on Illuminate collections. There is no special syntax required to...
The array_sort function (discussed in the Laravel Array Helper Function: array_sort article) internally creates a new instance of the \Illuminate\Support\Collection class with the given $array and then calls the collection's sortBy(callable...
The following Laravel classes allow for macros to be created by using the \Illuminate\Support\Traits\Macroable trait. There are, at the time of this writing, six classes that ship with direct support for macros: Class Description...