You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have some notifications in Nova and want to delete them all at once, you will get an error:
Call to a member function afterResponse() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function afterResponse() on null at /site/vendor/laravel/nova/src/Http/Controllers/NotificationDeleteAllController.php:22)
Description:
If you have some notifications in Nova and want to delete them all at once, you will get an error:
Call to a member function afterResponse() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function afterResponse() on null at /site/vendor/laravel/nova/src/Http/Controllers/NotificationDeleteAllController.php:22)
in the controller there is this function:
dispatch_sync
has noafterResponse()
, you probably should use thedispatch()
as this has theafterResponse()
method. See: https://laravel.com/docs/11.x/queues#dispatching-after-the-response-is-sent-to-browserDetailed steps to reproduce the issue on a fresh Nova installation:
Trigger some notifications and click on the remove all button to delete the notifications
The text was updated successfully, but these errors were encountered: