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 closure in laravel?

0 Answers  


What is antiforgerytoken mvc5?

0 Answers  


How to install valet?

0 Answers  


Explain validations in laravel?

0 Answers  


What do you know about service providers in laravel?

0 Answers  


What is mvc in php laravel?

0 Answers  


How do I make all of my forms bootstrap opinionated?

0 Answers  


Do you know how to use delete statement in laravel?

0 Answers  


How to Create Creating a Cookie in Laravel ?

1 Answers  


Difference between facades vs. Dependency injection?

0 Answers  


Tell me why doesn't laravel use semantic versioning?

0 Answers  


What is illuminate in laravel?

0 Answers  


Categories