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. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Same for me, the closure is never called |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
Worked, thanks!