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
How will you explain guarded attribute in a laravel model?
how we can upload files in laravel?
Explain what are laravel facades?
In which directory controllers are kept in laravel?
Tell us how long have you been using laravel?
Does laravel passport use jwt?
Explain few features of laravel?
What is acl in laravel?
How can we check the laravel current version?
What is lts version of laravel?
What is meant by Laravel - Localization ?
How to generate a request in laravel?
What is laravel api rate limit?
What is technology service provider?
List default packages of laravel 5.6?