jcadima
8/18/2017 - 1:58 PM

Laravel artisan commands

Laravel artisan commands


List all registered routes
$ php artisan route:list


Create a new controller class
$ php artisan make:controller TaskController


Create resource controller
$ php artisan make:controller TaskController --resource


Seed the database with records
$ php artisan db:seed

Make a new Model with a migration file
$php artisan make:model Todo -m