Laravel Artisan How To Make Controller
Do you need to make a new controller in Laravel ? It is very simple, just run this command:
php artisan make:controller MyCustomController
And that’s it ! This will create an empty controller in directory app/Http/Controllers with no methods…
But I need more methods
That is why you can make a resource controller, a controller who has all required methods to process your logic and your data, like: store, update, create, index, delete, ecc… Just run this command: