*/ protected $fillable = []; protected $guarded = []; /** * The attributes that should be hidden for serialization. * * @var array */ protected $hidden = [ 'password' ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'password' => 'hashed', 'login_date' => 'datetime' ]; } public function coach(): \Illuminate\Database\Eloquent\Relations\HasOne { return $this->hasOne(\App\Models\Coach\User::class, 'user_id'); } }