1php artisan make:controller MyController
2php artisan make:controller CompanyController --resource
3//To create with a Model
4php artisan make:controller CompanyController --resource --model=CompanyModel
5
1php artisan make:controller NameController // if you want to auto setup then use: NameContrller -r
1Simple controller:
2php artisan make:controller nameOfController
3
4Want to create controller in a folder? use it like this:
5php artisan make:controller NameOfFolder/nameOfController
6
7Resource Controller:This controller will create all CRUD methods
8php artisan make:controller nameOfController --resource