'hashed', 'last_login_at' => 'datetime', 'disabled_at' => 'datetime', 'two_factor_confirmed_at' => 'datetime', ]; } /** True when this operator holds a role that reaches the console. */ public function isOperator(): bool { return $this->hasAnyRole(self::OPERATOR_ROLES); } /** A disabled operator keeps their record and loses their access. */ public function isActive(): bool { return $this->disabled_at === null; } }