Search

Showing 7 of 1,697 result(s)

/blog/2016/12/07/laravel-artisan-route-command-the-routecache-command

The route:cache command is used to create a route cache file. This cache file will improve the performance of the route registration process. This command accepts no parameters or options. This command will be unable to cache any routes that use a...

/blog/2016/12/07/laravel-artisan-route-command-the-routeclear-command

The route:clear command is used to clear any previously generated route cache files. It does this by removing the bootstrap/cache/routes.php cache file. It defines no parameters or options can can be called like so: The route:cache command will...

/blog/2016/12/07/laravel-artisan-tinker-the-dump-command

The dump command can be used to display information about a particular variable or class instance within the console window. It will display the information using Symfony's VarDumper console component: It also import to note that since the Tinker...

/blog/2018/04/11/laravel-5-collapsing-a-multi-dimensional-array-to-a-single-level-with-collapse

The collapse helper method accepts an array as its only parameter. The given $array can be a single array, or a nested array. The method will then return a new array with the contents of all the nested arrays. Arrays that are collapsed can contain...

/blog/2018/04/11/laravel-5-filtering-array-elements-with-only

The only method can be used to retrieve a subset of the provided array. The subset of the returned array is based on the values supplied to the $key parameter.

/blog/2018/04/11/laravel-5-finding-the-first-occurrence-of-an-element-matching-a-condition-with-first

Let's begin discussing the first helper method be examining the $callback . The $callback is a function that accepts a $key and a $value as its parameters.