Showing 7 of 1,975 result(s)
The following collection will be used throughout this section when demonstrating the groupBy method: The collection be grouped by the genus of each item like so: $genera = $collection->groupBy('genus'); The $genera variable will now be an instance...
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...
Now that we have the first three methods implemented, we need to finish a few more: the getDots and render method. The getDots method is responsible for rendering the ellipsis when there is a lot of links. For the Semantic paginator, we are going...
…are going to utilize a static variable so that we don't have to worry about multiple handler instances, singletons, or other things that will just get in our way to "easily" send this data to our Antlers error template later. Within the register...
…wing: This command would generate a new resource controller file in the app/Htpp/Controllers/GeneratedResourceController.php file: php artisan make:controller GeneratedResourceController --resource A resource controller has index , create , store...
The each method can also be used with higher order messaging, which allows us to invoke collection methods and access properties on objects using PHP's property accessors syntax. In the following example, we will create modify our User class to...
…series are: Laravel Fluent Part One: Introduction, Laravel Fluent Part Two: The Public API The Illuminate\Support\Fluent class is a useful data type. It allows for the construction of a data "container" similar to an array or instance of stdClass...