Showing 10 of 2,055 results.

Laravel String Helper Function: studly_case

…n is to remove the following word separators and capitalize the first letter of each word it finds (while not affecting the case of any other letters): Any number of spaces, The underscore, _, The hyphen, - Let's take a look at a few examples to...

Laravel Collection Public API: shift

shift The shift method is used to remove the first item from the collection and return its value. The shift method modifies the collection instance. The following code example shows how to use the shift method: 1 <?php 2 3 use Illuminate \ Support...

Laravel Collection Public API: reverse

reverse The reverse method is used to reverse the order of items in a collection. The reverse method returns a new Collection instance. The reverse method does not preserve numerical keys but will preserve non-numerical keys. The following code...

Laravel Collection Public API: values

values The values method can be used to retrieve a new Collection instance containing only the values of the original collection instance. The keys of the new collection will be reset to consecutive numerical keys. The following example...

Laravel 5 String Helpers: Parse Callback

parseCallback is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: 1 ClassName @ someMethodName The point is...

Laravel String Helper Function: parse_callback

The parseCallback helper method is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: 1 ClassName @...

Laravel URL Helper Function: action

…tion was called, we did not need to include the root namespace of the controller ( App\Http\Controllers ). Laravel will automatically add the namespace for you. Any namespaces that are not part of the root namespace must be included (such as Auth...