you can use the filament native notification and we add some macro for you
useFilament\Notifications\Notification;Notification::make('send')->title('Test Notifications')->body('This is a test notification')->icon('heroicon-o-bell')->color('success')->actions([\Filament\Notifications\Actions\Action::make('view')->label('View')->url('https://google.com')->markAsRead() ])->sendToDiscord(auth()->user())->sendToEmail(auth()->user())->broadcast(auth()->user())->sendToDatabase(auth()->user())->sendToSlack(auth()->user())->sendToFCM(auth()->user())
Notification Service
to create a new template you can use template CRUD and make sure that the template key is unique because you will use it on every single notification.
to send a notification you must use our helper SendNotification::class like
where $template is selected of the template by key and $matchesTitle and $matchesBody is an array of matches to replace the template and $titleFill and $titleBody are an array of values to replace the matches