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 service provider laravel?
What is composer lock in laravel?
Explain Laravel - Event Handling ?
Does laravel prevent sql injection?
What are the basic concepts in laravel?
What does double quotation mean?
What is laravel passport?
List the requirements to install valet?
What are the requirements to install valet?
Why are migrations necessary?
How to configure network interfaces in homestead?
Tell me how to set database connection in laravel?