'datetime:H:i', 'start_time' => 'datetime:H:i', ]; } // --- Accessors & Mutators --- protected function formattedStartTime(): Attribute { return Attribute::get(fn () => $this->start_time?->translatedFormat('H:i')); } protected function formattedEndTime(): Attribute { return Attribute::get(fn () => $this->end_time?->translatedFormat('H:i')); } protected function formattedCreatedAt(): Attribute { return Attribute::get(fn () => $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 attendances(): HasMany { return $this->hasMany(Attendance::class); } public function course(): BelongsTo { return $this->belongsTo(Course::class); } }