What is Terminable Middleware ?
Answer / nafees ahmad
Terminable middleware performs some task after the response has been sent to the browser.
This can be accomplished by creating a middleware with terminate method in the middleware.
Terminable middleware should be registered with global middleware.
The terminate method will receive two arguments $request and $response.
Example : Create TerminateMiddleware by executing the below command.
"php artisan make:middleware TerminateMiddleware".
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me why laravel over other php frameworks?
What is eloquent?
How will you register service providers?
Where do you locate database configuration file?
What is laracasts?
what is meant by Global Middleware and Route Middleware ?
What is automatic injection in laravel?
Tell me does laravel support php 7?
What is laravel service container?
Explain how to do 301 redirects in laravel?
How to get current environment in laravel?
What is laravel best for?