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 algolia search?
What is an observer in laravel?
Explain how to bind a service container to a service provide?
What is escaping a string?
Explain extending bindings?
Why we use csrf token in laravel?
What is faker in laravel?
What is laravel homestead?
What is database seeding in laravel?
Explain Laravel - Event Handling ?
How to use the custom table in laravel model?
Can you explain about serialization?