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 check an input value is present or not in laravel?
How to know laravel version?
How can you reduce memory usage in laravel?
What is a service supplier?
Where do you locate route files?
What are the software’s included in laravel homestead?
What is dd() function in laravel?
Define implicit controller.
Explain some benefits of laravel over other php frameworks.
What is binding in laravel?
What is fillable attribute in a model?
What is reverse routing in laravel?