What is meant by Controller Middleware ?
Answer / amit khanna
Middleware can also be assigned to controller’s route or within your controller’s constructor and it can be used with controller also..
You can use the middleware method to assign middleware to the controller.
The registered middleware can also be restricted to certain method of the controller.
Assigning Middleware to Route
Route::get('profile', [
'middleware' => 'auth',
'uses' => 'UserController@showProfile'
]);
Is This Answer Correct ? | 0 Yes | 0 No |
What is meant by Attaching Headers ?
How to install and start, stop mysql on valet?
What is service container?
What is current stable version of laravel?
What are the directory structure of laravel 5.8?
Explain how to install installing mariadb on homestead?
Name some inbuilt authentication controllers of laravel.
What is a laravel model?
What are route groups?
Which template engine laravel use?
What does valet park and link command do?
What is the use of the bootstrap directory?