FilamentF
Filament15mo 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);

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);

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 ?
Was this page helpful?