A Blog Of Random Coding Techniques & Experiments Robert Askam

Laravel Artisan Commands Post Laravel Artisan Commands 2 years ago

Inside Laravel there is a very useful command that will help you throughout your entire development process.

This command is:

php artisan

To see a full list of commands you can type:
php artisan list

To create a controller use:
php artisan make:controller PostController

To make a model use:
php artisan make:model Posts

To make a model with a migration use:
php artisan make:model -m Posts