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 ?
1 Reply
Nuxnux
Nuxnux3w 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
Want results from more Discord servers?
Add your server