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"
3 Replies
Solution
Found out why! i needed to use php artisan queue:work
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.
wow, thanks for the tip!