The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by App\Events\OrderStatusCreated: $id, $relations, $class, $connection, $keyBy
Loading history...
17
18
/**
19
* Create a new event instance.
20
*
21
* @param \App\Models\Order $order
22
* @return void
23
*/
24
public function __construct(protected Order $order)
The expression return view('notificatio...this->order))->render() could return the type array which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.