'boolean', 'sent_at' => 'datetime', ]; } public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } /** * The mailable's short name, for a column that has to fit. * * "OrderConfirmationMail", not "App\Mail\OrderConfirmationMail" — the * namespace is the same on every row and tells the reader nothing. */ public function kind(): string { return $this->mailable === null ? '—' : class_basename($this->mailable); } }