database notification not working
where i use @livewire('database-notifications')
25 Replies
are you using the panel builder or only the notifications package?
yes panel builder and i add ->databaseNotifications() in admin panel but no notification is showing on alert icon
but i have entry in notification table
I mean
yes, but I not know where i can use @livewire('database-notifications')
because i have no blade
this is required if you are using the notifications outside the panel builder
yes I have been check for laravel11 and laravel 10 but not working
did you test the notification?
did you do this:
php artisan queue:work
yes i am using like
use Filament\Notifications\Notification;
$recipient = auth()->user();
Notification::make()
->title('Saved successfully')
->sendToDatabase($recipient);
and I also try php artisan queue:work but not working
Is there a notification in the notifications_table?
yes I have notifcation in notifications table
did you refresh the page?
yes
can you send a screenshot please?
ok
did you add Notifiable trait in the User model?
yes did
Solution
try this
notifiable_type should be
App\Models\User
yes working
Thanks, but how i can use for export excel notification
ok I try
database notification is working 👍
👍
Thank you so much