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:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store