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 do you mean by make() method?

0 Answers  


Tell me how can you display html with blade in laravel?

0 Answers  


Explain how to retrive all requested data in laravel?

0 Answers  


Difference between facades vs. Dependency injection?

0 Answers  


What is eager loading in laravel?

0 Answers  


What is a pull() ?

0 Answers  


Describe laravel service provider?

0 Answers  


Is laravel better than wordpress?

0 Answers  


How to register a service provider via composer in laravel?

0 Answers  


What do you know about laravel eloquent?

0 Answers  


Explain how to enable multiple php versions in homestead?

0 Answers  


How to redirect user with flashed session data in laravel?

0 Answers  


Categories