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 Passing Data to Views ?
What is the use of dd() function?
What are the major differences between laravel 4 and laravel 5.x?
Tell us do you have any experience with lamp?
Provide the steps to configure laravel application?
What is boot method in laravel?
What are the three types of authentication?
Explain me what is your favorite feature of laravel?
Can you please explain the difference between laravel and codeigniter?
What do you mean by laravel dusk?
What do you mean by reverse routing in laravel 5?
How to create custom middleware in laravel?