Showing 10 of 1,280 results.

Laravel Collection Public API: diff_keys

diffKeys($items) The diffKeys method is similar to the diff method. It is used to determine which items whose keys in the collection are not present in the supplied $items collection's keys. $items can be either an array, or another instead of...

Laravel Collection Public API: reduce

reduce(callable $callback, $initial = null) The reduce method is to reduce a collection into only one item. It does this by iterating over the collection and applying the $callback function on each item. The $callback function should define two...

Laravel String Helper Function: camel

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 Generator Command: The make:controller Command

The make:controller command can be used to quickly generate a new controller class file in the app/Http/Controllers directory. A name for the newly created controller must be provided. The name will become the name of the newly generated class and...

Laravel Artisan General Command: The clear-compiled Command

The clear-compiled command is used to clear the compiled classes and services application cache. These two files are located in the bootstrap/cache/ directory. The compiled classes cache is stored in a file named compiled.php and the services...

Filter Search