What is resource controller:
A resource controller is used to create a controller that handles all the http requests stored by your application. The resource() is a static function like get() method that gives access to multiple routes that we can use in a controller.
Why we use Laravel resource controller:
For example, imagine your application contains a Photo model and a Movie model. It is likely that users can create, read, update, or delete these resources.
Create resource controller command:
php artisan make:controller PhotoController --resource
My goal with this Laravel series is to create a guide for those just learning Laravel. This guide will take you from the very beginning of an idea into a real deployable application.
If you are facing any problem during development, you can post your queries free of cost at https://solutions.cdlcell.com so our team will respond to you within 24 hours.
If you need paid help from us, please visit https://solutions.cdlcell.com/user/in... to process a contract with us.
* Contact us: [email protected]
* Our website: https://cdlcell.com
* My Twitter: / hadayatniazi3
* My FB: / hadayatniaziofficial
Follow us on LinkedIn: / cdlcell
Follow us on Tiktok: / cdlcell
Join us on Instagram: / cdlcell
Follow us on Facebook: / cdlcellpk
Join our Laravel Developers whatsapp group: https://chat.whatsapp.com/JSA8qZZGVbP...
#php
#phplaravel
#laravel
#webdevelopment
#cdl
#career_development_lab
#hadayatniazi
#coding
#technology