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 get Retrieving a Cookie in Laravel ?
Name aggregates methods of query builder.
What are deferred providers in laravel?
What is laravel best for?
Explain how to do 301 redirects in laravel?
what is Restful Resource Controllers ?
How do I make my application serve its content in different languages?
What is the use of object relational mapping?
What are redirect responses?
What is the use of dd() function?
Tell me how to set database connection in laravel?
What are route groups?