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 create route name in laravel 5?
State the difference between get and post method.
What is factory in laravel?
Explain the bindings and singletons properties?
Define homebrew?
Explain named routes in laravel?
Name the first file that loaded in laravel?
How will you explain dd() function in laravel?
What is blade php in laravel?
What is Laravel - Middleware ?
What are controllers in laravel?
What is bootstrap in laravel?