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 |
How to configure clear route cache in laravel?
How can you exclude uris from csrf protection in laravel?
Define laravel guard.
why we use Laravel - Session ?
What is service provider in laravel?
What does guid stand for?
Explain some benefits of laravel over other php frameworks.
How to return a view from route in laravel?
State the difference between authentication and authorization.
What are the databases laravel supports?
What is official website url of laravel?
What is reverse path filtering?