Showing 10 of 2,055 results.

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...

parseKey($key) | The Laravel Translator

…s. The namespace refers to a custom namespace (or the default * namespace); the group refers to a particular file, such as passwords.php and the item refers to a particular key within the array returned by the file. The following code examples...

Laravel MessageBag Public API: toArray

The toArray method is similar to the all method in that it will return the underlying array that the collection instance is using. The difference, however, is that the toArray method will convert any object instance it can into arrays (namely any...

Collapsing Laravel Collections using array_collapse

This article is a continuation of the Laravel Array Helper Function: array_collapse article. The collapse (defined in the Illuminate\Support\Arr helper class) method will also work on Illuminate collections. There is no special syntax required to...

Web Manifest Overview

…--------------------------- 7 | Webmanifest Public Path Configuration 8 |-------------------------------------------------------------------------- 9 | 10 | Controls the public path where the generated webmanifest file 11 | will be saved. This...