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 create model controller and migration in a single artisan command in laravel?
What do you know about php artisan? Mention some artisan command.
What is helper in laravel?
What are route groups?
What are the Forms in Laravel ?
What is query builder in laravel?
What is laravel orm?
Define lumen.
Explain how to serve sites on valet?
What is a Encryption Process ?
Explain to listeners.
Is laravel faster than rails?