Sunday, September 24, 2017

Laravel: Basic Artisan Console Commands

To view a list of all available Artisan commands, you may use the list command:
$ php artisan list


Displaying Your Current Laravel Version
$ php artisan --version 

To view a help screen, simply precede the name of the command with help:
$ php artisan help migrate

To enter the Tinker environment, run the tinker Artisan command. Tinker allows you to interact with your entire Laravel application on the command line, including the Eloquent ORM, jobs, events, and more.
$ php artisan tinker 

To migrate the database tables.
 $ php artisan migrate

To create model, migration, controller, Eloquent with single command.
 $ php artisan make:model name -mc

To create  controller with all functions like index, create, show, edit, destory and update.
 $ php artisan make:controller name -r