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 |
What do you call a single quote?
Tell me does laravel support php 7?
How can you exclude uris from csrf protection in laravel?
How to get current environment in laravel?
How to check composer is installed or not in laravel?
How to stop valet?
What is a service supplier?
How to enable query log in laravel 5?
What do you mean by dusk used in laravel 5?
How to Redirecting to Controller Actions in Laravel ?
What do you know about laravel eloquent?
What is meant by Laravel - Localization ?