From 2a7d012ec842fbdac06feb4d9d5ba9241410bdd4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 24 Jan 2026 10:04:01 +0530 Subject: [PATCH] Added push alert notification sample --- .../Pages/CreateInvoiceValidation.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php index 4501955..d080e0c 100644 --- a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php +++ b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php @@ -10,6 +10,7 @@ use App\Models\InvoiceValidation; use App\Models\Item; use App\Models\Plant; use App\Models\StickerMaster; +use App\Notifications\PushAlertNotification; use Filament\Facades\Filament; use Filament\Notifications\Notification; use Filament\Pages\Concerns\ExposesTableToWidgets; @@ -136,6 +137,8 @@ class CreateInvoiceValidation extends CreateRecord ->send(); $this->dispatch('playNotificationSound'); + $user->notify(new PushAlertNotification()); + $this->form->fill([ 'plant_id' => $plantId, 'invoice_number' => $invoiceNumber, @@ -2285,6 +2288,7 @@ class CreateInvoiceValidation extends CreateRecord ->danger() ->seconds(3) ->send(); + $this->dispatch('playWarnSound'); $this->form->fill([