Showing 10 of 1,204 results.

Laravel MessageBag Public API: first

…given $key . If the $key is null the first method will return the first message in the MessageBag instance. If there are no messages stored within the message bag, the first method will return an empty string. The first method also accepts a...

Laravel Artisan Queue Command: The queue:restart Command

The queue:restart command can be used to indicate to all daemon queue workers that they should restart. This command simply instructs the queue works to restart after they are done working on their current job. This command defines no options or...

Laravel 5: Sorting Arrays With sort

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 into the $callback function. It then...

Laravel Artisan General Command: The tinker Command

…language shell. 2 exit The shell will output Exit: Goodbye and return to the terminal.To load external files into the interactive shell, supply them as arguments to the tinker command (they will be passed to the command's include input). The...

Announcement: All Of the Laravel Articles Are Free

…er was created just for this site allowing for the use of LeanPub information blocks! Not only was the friction of converting the book into a blog posts becoming too much, I started to shift my focus into creating projects for my personal...

Laravel Collection Public API: chunk

chunk($size, $preserveKeys = false) The chunk method is useful when working with large collections in that it allows developers to create smaller collections to work with. The chunk method defines two parameters: $size , which is used to control...