Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Terminable Middleware ?

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


Please Help Members By Posting Answers For Below Questions

What are the requirements to install valet?

654


Can you explain about serialization?

679


How to get requested path in laravel?

714


How to start, stop mysql on valet?

634


How does the ioc (inversion of control) container work?

610


List the software’s included in laravel homestead?

667


What is guard in laravel authentication?

727


How to use traits in laravel?

722


Explain the events in laravel?

730


What is laravel passport?

697


What is homestead.yaml?

653


Explain what is valet?

641


How can we create a record in laravel using eloquent?

690


What is use of print_r () and dump () functions?

635


What is the use of the bootstrap directory?

691