*/ protected $fillable = [ 'user_id', 'name', 'email', 'phone', 'password', 'options', 'profile_photo_path', 'role', 'is_active', 'is_super_admin', ]; /** * The attributes that should be hidden for serialization. * * @var list */ protected $hidden = [ 'password', 'remember_token', 'two_factor_secret', 'two_factor_recovery_codes', 'two_factor_confirmed_at', 'deleted_at', ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'last_login_at' => 'datetime', 'password' => 'hashed', 'options' => 'array', 'is_active' => 'boolean', 'is_super_admin' => 'boolean', ]; } }