Showing 10 of 2,055 results.

Laravel Artisan Generator Command: The make:controller Command

…2 } This command would generate a new resource controller file in the app/Htpp/Controllers/GeneratedResourceController.php file: 1 php artisan make:controller GeneratedResourceController --resource A resource controller has index , create , store...

Laravel Collection Public API: lists

lists($value, $key = null) The lists method is an alias of the pluck method. The lists method is used to retrieve the a list of values from the collection. It defines two parameters: $value and $key . The $value indicates which property should...

Writing Custom Laravel Artisan Commands: An Introduction

…ate sophistication. - Leonardo da Vinci 3 Simplicity is the essence of happiness. - Cedric Bledsoe 4 Smile, breathe, and go slowly. - Thich Nhat Hanh 5 Simplicity is an acquired taste. - Katharine Gerould 6 Well begun is half done. - Aristotle 7...