Showing 10 of 2,044 results.

Alternatives to Laravel Artisan Command Signatures

The command signature feature was introduced in Laravel version 5.1. In older versions of the framework the instance methods getArguments and getOptions were used to define the input expectations for commands. Both methods were expected to return...

Laravel Collection Public API: shuffle

shuffle The shuffle method is used to rearrange the items of the array in a random distribution. The shuffle method will return a new collection and will not modify the original collection instance. The following code example shows the usage of...

Laravel Artisan Custom Styles: Custom Progress Bar Styles

…c components of the progress bar is the bar character, the progress character and the empty bar character. By default the progress character is set to an empty string on Unlike-like systems and does not appear in the above diagram. The diagram...

Laravel Collection Public API: where

where($key, $operator, $value = null) The where method allows developers to filter a collection given a key value pair. It filters the collection's items by checking that the given $key has some value equal to the provided $value . An argument can...