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 ajax request in laravel?
How to make a custom validation rule in laravel?
What is orm laravel use?
How to install installing mariadb on homestead?
Tell me how to enable the query logging?
Tell me what is official website url of laravel?
Tell me how do I see all of the routes that are defined?
What do you mean by make() method?
What are the major differences between laravel 4 and laravel 5.x?
What is monolog library?
Can laravel be hacked?
Is laravel an mvc?