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 |
Do you know what is luman?
What are the benefits of facades?
How do I make a particular task run everyday by 10pm?
What is service container?
Which types of relationships are available in laravel eloquent?
What is the purpose of using dd() function iin laravel?
what is Laravel-Routing ?
What are the differences between laravel and codeigniter?
How to Deleting Session Data in Laravel ?
How to write php code in laravel blade?
explain how to add a middleware in route group?
Do you know what is php artisan. List out some artisan commands?