Database Notification not being created

Hello I followed the instructions in the docs: https://filamentphp.com/docs/3.x/panels/notifications, https://filamentphp.com/docs/3.x/notifications/installation However whenever I want to create a Database Notification the notification is not saved in the database. I've already added the databaseNotifications method in the Admin Panel Provider, migrated the notifications table. And there's no record in the notifications table. Did I miss something out?
No description
3 Replies
Null Keso
Null KesoOP15mo ago
I managed to make this one working by creating a laravel notification class (use the artisan command) Then changing the value in the via method from mail to database, and replacing the toMail method to toDatabase and return the sample filament notification in the docs.
S1efan
S1efan15mo ago
@NullPointer do you have the jobs table for queue-jobs migrated? If yes, than it could be, that all databse-notifications are in that jobs-table and you must run php artisan queue:work. This was the solution in my project here as I had the same issue with database-notifications
Null Keso
Null KesoOP15mo ago
@S1efan thanks, I already did tis before but I sticked to the notification class. Strangely enough the docs doesn't mention about the queue artisan command for cases where the queue driver is the database. While there are specific users out there that will mention: just read the docs
Want results from more Discord servers?
Add your server