Edit File: BaseNotification.php
<?php namespace App\Notifications; use App\Jobs\SendFirebaseNotificationToMultipleJob; use Illuminate\Notifications\Notification; use App\Traits\FirebaseTrait; use Illuminate\Bus\Queueable; class BaseNotification extends Notification { use Queueable, FirebaseTrait; public $data; public function via(mixed $notifiable): array { return ['database']; } public function toArray($notifiable) { SendFirebaseNotificationToMultipleJob::dispatchAfterResponse($notifiable, $this->data); return $this->data; } }
Back to File Manager