What is Terminable Middleware ?



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

Post New Answer

More Laravel PHP Framework Interview Questions

How to check ajax request in laravel?

0 Answers  


How to make a custom validation rule in laravel?

0 Answers  


What is orm laravel use?

0 Answers  


How to install installing mariadb on homestead?

0 Answers  


Tell me how to enable the query logging?

0 Answers  






Tell me what is official website url of laravel?

0 Answers  


Tell me how do I see all of the routes that are defined?

0 Answers  


What do you mean by make() method?

0 Answers  


What are the major differences between laravel 4 and laravel 5.x?

0 Answers  


What is monolog library?

0 Answers  


Can laravel be hacked?

0 Answers  


Is laravel an mvc?

0 Answers  


Categories