Laravel Model Migration Controller with one line of artisan command

Laravel artisan commands are quite handy & convenient methods when it comes to take your app to the production level incredibly fast. There are many helpful laravel artisan commands .You can check all of them using laravel help flag or from documentation.We’re not going to look all of them but let’s take a look at how we can create¬†model, migration and controller with one line of artisan command.

We can create model, migration and controller with in one line artisan command.

php artisan make:model Foo -mcr

php artisan make:model Foo -m -c

Above artisan command will generate you all those attributes :

migration and resource controller.

Sharing is caring!

Related Post