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

Lists the available router methods used in laravel 5?

0 Answers  


What is php artisan. List out some artisan commands?

0 Answers  


How do I use sub-domain routing?

0 Answers  


How to enable multiple php versions in homestead?

0 Answers  


Can I use react with laravel?

0 Answers  


Tell me how to enable the query logging?

0 Answers  


How to make a custom validation rule in laravel?

0 Answers  


Why laravel is the best framework?

0 Answers  


What are middleware groups?

0 Answers  


What is chunk in laravel?

0 Answers  


What is auth?

0 Answers  


What is a Terminable Middleware ?

0 Answers  


Categories