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 |
I just installed laravel and have the evil whoops error,how do I find out what’s wrong and fix it?
Can you explain about serialization?
What is rate limiting?
How to get current environment in laravel 5?
What is service container?
What is response in laravel?
How to create Controller Laravel - File Uploading ?
Explain the request life cycle of laravel?
What is route in laravel?
What are bundles, reverse routing and the ioc container?
Tell me what is current stable version of laravel?
Is laravel safe from sql injection?