Showing 10 of 1,204 results.

16. Limitation of Liability. | License

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,...

Laravel Collection Public API: contains

…0 [ ' smaller ' => ' tardigrade ' ] 11 ] ) ; 12 13 // true 14 $ collection -> contains ( ' big ' , ' bear ' ) ; 15 16 // true 17 $ collection -> contains ( ' smaller ' , ' tardigrade ' ) ; 18 19 // false 20 $ collection -> contains ( ' smaller '...

Laravel Collection Public API: first

…(having no items), the first method will return null : 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create an empty collection. 6 $ collection = new Collection ( [ ] ) ; 7 8 // null 9 $ value = $ collection -> first ( ) ; The...

Laravel 5: Redirecting Users to the Previous Page With back

The back helper function is used to create a redirect response to the user's previous location. It defines two parameters which can be used to control the status code and headers of the response. An integer argument can be supplied for the $status...

Laravel Collection Public API: whereIn

whereIn($key, array $values, $strict = true) The whereIn method is used to filter the collection based on a given $key and an array of the possible $values that the $key can have. The method also defines an optional $strict parameter, which when...

Laravel Collection Public API: every

every($step, $offset = 0) The every method can be used to retrieve a subset of a collection based on each items distance from each other. It defines one required parameter $step and one optional parameter $offset . An argument supplied for $step...