Showing 10 of 2,055 results.

SORT_LOCALE_STRING | Laravel Collection Public API: sortBy

The SORT_LOCALE_STRING treats each item as a string, while also taking into account the current locale, when doing the comparison. The following code example shows how to use the SORT_LOCALE_STRING flag when sorting the $collection created...

Additional Index Fields | Index Configuration

The documentation search provider makes many additional fields available for use when building the search results template. The following should be added to your fields configuration when using the docs: search provider: search_title, : The title...

Laravel Facades Part One: An Introduction to Facades

…enient way to access Laravel's components. Each facade is bound to some component already registered in the service container. Facades are typically used to provide a simpler interface to an complex underlying subsystem. While some facades...

Laravel 5 Collections: Paginating Collections With forPage

The forPage method is used to implement pagination over collections. The forPage defines two parameters: $page , which is used to tell the collection which "page" should be returned and $perPage , which is used to control the number of items that...

Thoughts on a "Guidance Engine"

A while ago I wrote this post about all the curated lists of "awesome" things you can find on GitHub. There is an "awesome" list now for almost any programming topic out there. A lot of these lists are interconnected, even if they were not...