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 a Encryption Process ?
What is csrf protection token?
What is composer tool?
What is lts version of laravel?
How do I seed my database for column that is a foreign key referencing to other table?
Tell me when laravel was launched?
What is the use of in laravel?
explain how to add a middleware in route group?
What are the difference between laravel 5 & laravel 4?
What is use of print_r () and dump () functions?
What are the databases laravel supports?
Please explain laravel query builder?