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

Where can I learn laravel?

0 Answers  


How to get configuration values in laravel?

0 Answers  


What is auth? How is it used?

0 Answers  


How to resolve class instance out of the container in laravel?

0 Answers  


How to use update statement in laravel?

0 Answers  


What is csrf token in laravel?

0 Answers  


Differce between contracts and facades?

0 Answers  


In laravel, what is fillable attribute in a model?

0 Answers  


What is boot method in laravel?

0 Answers  


How to retrive current environment in laravel?

0 Answers  


What are the requirements for laravel 5.8?

0 Answers  


What is laravel dusk?

0 Answers  


Categories