user()?->can('access-admin') ?? false; } /** * Get the validation rules that apply to the request. * * @return array|string> */ public function rules(): array { return [ ...$this->profileRules($this->route('user')?->id), 'must_change_password_on_next_login' => ['required', 'boolean'], 'password' => ['nullable', 'string', Password::default(), 'confirmed'], ]; } }