mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
13 lines
No EOL
609 B
Markdown
13 lines
No EOL
609 B
Markdown
---
|
|
title: 'Use the app()->terminating() hook to perform tasks *after* the response has been sent to the user'
|
|
tweet_id: '1466810187348463620'
|
|
thread_slug: weekly-thread-2021-48
|
|
author_username: marcelpociot
|
|
images:
|
|
- 'https://pbs.twimg.com/media/FFeI02qXIAENzFj.jpg'
|
|
created_at: 2021-12-03T16:42:55+00:00
|
|
slug: use-the-app-gtterminating-hook-to-perform-tasks-after-the-response-has-been-sent-to-the-user
|
|
---
|
|
🔥 Use the "terminating" hook on your @laravelphp app instance to perform tasks _after_ the response was already sent to the browser.
|
|
|
|
That's also what's powering "dispatchAfterResponse" 🚀 |