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 |
Do you know what developed the laravel?
How do I set up the eloquent relationships between the aforementioned comments and authors, including creating the schema design?
How to Create Creating a Cookie in Laravel ?
What are route parameters?
Is laravel an mvc?
What does double quotation mean?
Name some inbuilt authentication controllers of laravel.
Explain about laravel project?
What is binding?
what are Important Points contracts in Laravel ?
Tell me what are pros and cons of using laravel framework?
Name the first file that loaded in laravel?