$this->form( $this->makeForm() ->schema([ $this->getEmailFormComponent(), $this->getPasswordFormComponent(), $this->getRememberFormComponent(), Turnstile::make('captcha') ->hidden(!config('turnstile.turnstile_enabled')) ->validationMessages([ 'required' => config('turnstile.error_messages.turnstile_check_message'), ]), ]) ->statePath('data'), ), ]; } protected function throwFailureValidationException(): never { $this->dispatch('reset-captcha'); parent::throwFailureValidationException(); } }