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 Global Middleware and Route Middleware ?



what is meant by Global Middleware and Route Middleware ?..

Answer / rishabh khanna

The Global Middleware will run on every HTTP request of the application, whereas the Route Middleware will be assigned to a specific route.
The middleware can be registered at app/Http/Kernel.php.
This file contains two properties $middleware and $routeMiddleware.
Middleware property is used to register Global Middleware.
To register the global middleware, list the class at the end of $middleware property.
RouteMiddleware property is used to register route specific middleware.
To register the route specific middleware, add the key and value to $routeMiddleware property.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

I just installed laravel and have the evil whoops error,how do I find out what’s wrong and fix it?

0 Answers  


Can you explain about serialization?

0 Answers  


What is rate limiting?

0 Answers  


How to get current environment in laravel 5?

0 Answers  


What is service container?

0 Answers  


What is response in laravel?

0 Answers  


How to create Controller Laravel - File Uploading ?

1 Answers  


Explain the request life cycle of laravel?

0 Answers  


What is route in laravel?

0 Answers  


What are bundles, reverse routing and the ioc container?

0 Answers  


Tell me what is current stable version of laravel?

0 Answers  


Is laravel safe from sql injection?

0 Answers  


Categories