*/ use HasFactory, Notifiable; /** * @return BelongsTo */ public function supervisor(): BelongsTo { return $this->belongsTo(User::class, 'supervisor_id'); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'role' => Role::class, 'is_active' => 'boolean', 'employment_ends_on' => 'date', ]; } }