This is the straightforward part. Type php artisan make:controller sharkController —resource from the command line in the root directory of your Laravel project. Our resource controller will be created with all of the methods we require.
With a single line of code, laravel resource routing assigns the normal "crud" routes to a controller. For example, you might want to make a controller that handles all http requests for your application's "blogs." You may rapidly construct a controller with the make:controller artisan command.
Route::resource: The Route::resource function is a RESTful Controller that generates all of an application's fundamental routes and can be handled easily using the controller class.
Within a single class, controllers are used to handle request logic, and the controllers are defined in the "app/http/Controllers" directory. The MVC (Model View Controller) architecture is used by the Laravel framework, and controllers are responsible for managing traffic between the model and views.
Learner's Ratings
4.4
Overall Rating
81%
3%
6%
6%
4%
Reviews
A
Abdul Sattar
5
Please update course
A
Ali Haidar
5
awesome
M
Muzammal
5
Best Experience Ever
J
Jatin
5
this tutorial help me to learn laravel ..
Outstanding Course
G
gautam metaliya
5
good experiance
B
bokhtiar toshar
5
Thank you so much,
A
Anuj Tyagi
5
Thank you so much. You are doing a good job and your way of teaching is very good.
M
mohit mistry
5
Sir, very good explanation in video but sir which screen recoder you used for making this kind of video???
R
RUPESH MISHRA
5
sir please make a video how to use bootstap in laravel without cdn link..
Share a personalized message with your friends.