How to create model with resource-full controller

November 6, 2019

In Laravel, you can create Model with resorcefull controller easily by using the following command in your terminal

If you want to create model with a controller you can use the followng command

php artisan make:model Product -c

If you want to create Resourefull controller you can use the following command

php artisan make:controller ProductController -r

If you need to create model,controller and resource at once you can use the following command

php artisan make:model Product -c -r