1Verb Path Action Route Name
2GET /users index users.index
3GET /users/create create users.create
4POST /users store users.store
5GET /users/{user} show users.show
6GET /users/{user}/edit edit users.edit
7PUT|PATCH /users/{user} update users.update
8DELETE /users/{user} destroy users.destroy
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
1Resource Controller:This controller will create all CRUD methods
2php artisan make:controller nameOfController --resource