F
Filament3mo ago
Nuxnux

Notification not being send by reverb`

Hey so i have do it as follow composer require filament/notifications:"^3.2" -W php artisan filament:install --notifications To send my notification i do it like this
Notification::make()
->title('Two days before the reservation ' . $reservation->id)
->actions([
Action::make('Link')
->button()
->url(ReservationResource::getUrl('view', ['record' => $reservation])),
Action::make('view')
->button()
])
->sendToDatabase($user, isEventDispatched: true);
Notification::make()
->title('Two days before the reservation ' . $reservation->id)
->actions([
Action::make('Link')
->button()
->url(ReservationResource::getUrl('view', ['record' => $reservation])),
Action::make('view')
->button()
])
->sendToDatabase($user, isEventDispatched: true);
i have already check the user is a good one php artisan make:notifications-table to create the table i use the same code as the doc to create and send a notification
$recipient = auth()->user();

Notification::make()
->title('Saved successfully')
->sendToDatabase($recipient, isEventDispatched: true);
$recipient = auth()->user();

Notification::make()
->title('Saved successfully')
->sendToDatabase($recipient, isEventDispatched: true);
and then i also started the reverb like this php artisan reverb:start --debub but i still need to reload to see the notification do you know why did i do something bad ?
3 Replies
Nuxnux
NuxnuxOP3mo ago
everything is working for the notification but i don't get it in real time it save on db, show in the menu etc but not in real time
Asmit Nepali
Asmit Nepali2mo ago
Any solutions
Nuxnux
NuxnuxOP2mo ago
@Asmit Nepali did you delete the already here channels in channels.php it was so the problem for me but the problem is it only works on dev not in production
Want results from more Discord servers?
Add your server