Unable to create notifications

Trying to create notifications in the database, i followed the docs but when i use any of the recommended methods it doesn't throw a error nor does it create a notification, any idea why? Methods that i tried: $recipient = auth()->user(); Notification::make() ->title('Saved successfully') ->sendToDatabase($recipient); $recipient = auth()->user(); $recipient->notify( Notification::make() ->title('Saved successfully') ->toDatabase(), ); Currently using laravel 11 and the latest version of filament "filament/filament": "^3.2.115"
Solution:
Found out why! i needed to use php artisan queue:work
Jump to solution
3 Replies
Solution
Firebat
Firebat2w ago
Found out why! i needed to use php artisan queue:work
awcodes
awcodes2w ago
FYI, laravel 11 changed the default env queue connection from ‘sync’ to ‘database’ so if you want to use it without the queue worker you can change it in the env back to sync.
Firebat
Firebat2w ago
wow, thanks for the tip!
Want results from more Discord servers?
Add your server