Showing 10 of 1,280 results.

Laravel 5: Message Bags

The Illuminate\Support\MessageBag class is an elaborate key/value storage system for storing different types of messages. It it also allows developers to specify a format which is used when returning the messages. The format makes it incredibly...

Laravel 5 Collections: Adding Values to a Collection With union

The union method will add the $items value to a copy of the existing collection. If there are key collisions between the collection instance and the provided $items , the elements from the collection instance will be used instead. The union method...

Laravel 5: Get the Current Date With today

The today helper function is similar to the now helper function in that it returns a Carbon for the current date, however, the difference is that the today helper function only returns the date component; the time component is set to 00:00:00 ....

Laravel 5.5 String Helper Function: camel_case

Camel casing is similar to studly case such that each word starts with a capitalized letter, with the difference being the first character is lower cased. Like the studly method, the camel method will not affect the casing of the rest of the word.

Laravel Artisan Queue Command: The queue:work Command

The queue:work command is similar to the queue:listen command, but with a few differences. This command can be used to process only the first job on the queue in a "one off" fashion like so: 1 # Process the first job using the `--once` option. 2...