fix: correct notification class usage in PDF export job

The notification was using the wrong class (Notifications instead of Notification). This caused the export completion notification to fail. Updated the import and instantiation to use the correct Filament Notification class.
This commit is contained in:
Jp
2026-02-18 23:13:46 +08:00
parent df66727379
commit 2bf12aa4e8

View File

@@ -4,9 +4,8 @@ namespace App\Jobs;
use App\Models\Transmittal; use App\Models\Transmittal;
use Barryvdh\DomPDF\Facade\Pdf; use Barryvdh\DomPDF\Facade\Pdf;
use Filament\Forms\Components\Actions; use Filament\Notifications\Notification;
use Filament\Notifications\Actions\Action; use Filament\Notifications\Actions\Action;
use Filament\Notifications\Livewire\Notifications;
use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Foundation\Queue\Queueable; use Illuminate\Foundation\Queue\Queueable;
@@ -40,7 +39,7 @@ class TransmittalPDFExportJob implements ShouldQueue
Storage::disk('public')->put('transmittal-export.pdf', $pdf->output()); Storage::disk('public')->put('transmittal-export.pdf', $pdf->output());
Notifications::make() Notification::make()
->success() ->success()
->title('Export Completed') ->title('Export Completed')
->actions([ ->actions([