ExportRequestStatus::class, 'completed_at' => 'datetime', ]; public function subject(): MorphTo { return $this->morphTo(__FUNCTION__, 'subject_type', 'subject_id'); } public function isForCustomer(): bool { return $this->subject_type === (new Customer)->getMorphClass(); } }