Answer Posted / 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 |
Post New Answer View All Answers
What is laravel slug?
How to get JSON Response on Laravel ?
What is technology service provider?
How can we create a record in laravel using eloquent?
Explain how to list all routes in laravel?
Does laravel use mvc?
Explain how can you write your own service provider in laravel?
Why do we need dependency injection?
What does orm stand for?
How we can get user's detail when he is logged in using auth?
What do you understand by unit testing?
What is laravel 5 homestead?
What version of laravel do you generally use?
What is Testability ?
Name databases supported by laravel.