Showing 10 of 2,138 results.

Laravel Collection Public API: except

except($keys) The except method will return all the key/value pairs in the collection where the keys in the collection are not in the supplied $keys array. Internally, this method makes a call to the Illuminate\Support\Arr:except($array, $keys)...

Laravel 5 Collections: Sorting a Collection With sort

The sort method is used to sort the collection. If no $callback is provided, the collection will be sorted using a case-insensitive "natural order" algorithm. An optional $callback can be supplied to customize the comparison that is used when...

setConditions | Blade Compiler

Sets and overrides all custom condition handlers. In default setups, this is set to the return value of Illuminate\View\Compilers\BladeCompiler::$conditions protected property. Argument Description $conditions The condition handlers. 1 <?php 2 3...

Handling Specific Numbers | Laravel String Pluralization

Sometimes it is useful to associate a given message number with exactly one number. All of the previous examples have not dealt with the pluralization case when there is no items (when the $number is exactly 0 ). Passing 0 to the previous...