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 is response in laravel?
Do you know what is the latest version of laravel?
Tell me what is official website url of laravel?
What is blade template?
Tell me what is laravel eloquent?
How will you describe bundles in laravel?
Do you know how to use delete statement in laravel?
Tell me when laravel was launched?
How to check ajax request in laravel?
Tell me what is service providers?
Explain the directory structure of laravel 5.6.
Tell me what are system requirement for laravel 5.0?