Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is meant by Controller Middleware ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

What is view laravel?

0 Answers  


What is view routes?

0 Answers  


What is name of first file that loaded in laravel?

0 Answers  


Explain loggin in laravel.

0 Answers  


Tell us how long have you been using laravel?

0 Answers  


Is laravel better than wordpress?

0 Answers  


Tell me what is database migration? And how to use it to add insert initial data to database?

0 Answers  


Explain laravel’s middleware?

0 Answers  


What are named routes in laravel?

0 Answers  


Explain the concept of contracts in laravel.

0 Answers  


What is service container in laravel?

0 Answers  


Define contextual binding?

0 Answers  


Categories