This commit is contained in:
Taylor Otwell 2018-03-15 16:01:34 -05:00
parent 984d785183
commit 0612f0bec2
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ Middleware parameters may be specified when defining the route by separating the
<a name="terminable-middleware"></a>
## Terminable Middleware
Sometimes a middleware may need to do some work after the HTTP response has been prepared to be send. For example, the "session" middleware included with Laravel writes the session data to storage after the response has been prepared to be sent to the browser. If you define a `terminate` method on your middleware, it will automatically be called after the response is prepared to be sent to the browser.
Sometimes a middleware may need to do some work after the HTTP response has been prepared. For example, the "session" middleware included with Laravel writes the session data to storage after the response has been fully prepared. If you define a `terminate` method on your middleware, it will automatically be called after the response is ready to be sent to the browser.
<?php