Showing 10 of 2,138 results.

rounds | Laravel 5: Hashing Strings With bcrypt

The rounds option is used to control how many iterations the underlying Blowfish implementation will use when generating the final hash. The rounds value can be any positive integer between 4 and 31 (including both 4 and 31 ). If an integer...

Laravel Collection Public API: search

search($value, $strict = false) The search method is used to search the collection for a given $value . If the given $value is found, the value's corresponding key is returned. If the $value is not found in the collection, the search method will...

Laravel 5 Collections: Randomizing Element Order With 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.1 public function shuffle ( 2 $ seed = null 3 ) ;The...

HTML Fragments

The Blade Parser library supports the concept of "HTML fragments," or the parsing of invalid HTML documents. This feature exists to help provide additional context to the parsed Blade constructs, such as where they appear within a document. The...

Laravel 5 Macros: Creating Callback Macros

The first method of creating macros we will explore is the callback function macro. These macros are added to the various classes directly by calling the macro method on the macroable class and then supplying the callback function that will be...

The Laravel Translator

The Translator class is the class that most developers will be used to interacting with. The Translator class is responsible for handling the interactions between the application and the underlying translation systems, such as interacting with...