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 |
Is laravel an open source?
List some official packages provided by laravel?
Do you know laravel eloquent?
Where do you locate route files?
What is a Terminable Middleware ?
Is laravel the best php framework?
How can you exclude uris from csrf protection in laravel?
Tell me how to use insert statement in laravel?
Explain how to do environment configuration in laravel?
Explain php artisan?
What is the difference between echo print print_r and var_dump?
What is the difference between laravel and symfony?