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