The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Mail\AbsenceNotification: $id, $relations, $class, $keyBy
Loading history...
17
18
public $enrollment;
19
20
/**
21
* Create a new message instance.
22
*
23
* @return void
24
*/
25
public function __construct(public Event $event, public User $student)
It seems like __('Absence Notification') can also be of type array and array; however, parameter $subject of Illuminate\Mail\Mailable::subject() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation