$this->created_at->translatedFormat('l, d M Y H:i')); } protected function formattedUpdatedAt(): Attribute { return Attribute::get(fn () => $this->updated_at?->translatedFormat('l, d M Y H:i')); } // --- Relations --- public function classSession(): BelongsTo { return $this->belongsTo(ClassSession::class); } public function course(): BelongsTo { return $this->belongsTo(Course::class); } }