Repository navigation
Defer helper is not working #52904
|
Hi. In my Laravel app v-11.23.5 the defer is not working. My app migrated from version 10.23 to version 11 2 months ago. |
Answered by
MoussaPro
Oct 1, 2024
Replies: 3 comments 8 replies
|
Same for me, the closure is never called |
1 reply
3 replies
|
Laravel 11 does not use Kernel, instead, it uses application bootstrap to define and register middleware. For deffer to work you must add \Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks::class middleware in your web middlewareGroup in Http\Kernel.php |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Worked, thanks!