how to create controller in laravel

Solutions on MaxInterview for how to create controller in laravel by the best coders in the world

showing results for - "how to create controller in laravel"
Samantha
12 Mar 2019
1php artisan make:controller MyController
Cloé
15 Aug 2019
1php artisan make:controller UserController
Salomé
05 Jan 2021
1php artisan make:controller ShowProfile
Michael
13 Sep 2018
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
Santino
18 Mar 2019
1php artisan make:controller NameController // if you want to auto setup then use: NameContrller -r  
Eva
10 Feb 2017
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
similar questions
queries leading to this page
how to create controller in laravel