['required', 'string', sprintf('regex:%s', setting('username_regex')), 'max:25', Rule::unique('users')], 'mail' => ['required', 'string', 'email', 'max:255', Rule::unique('users')], 'password' => ['required', 'string', 'confirmed', 'min:8'], 'terms' => ['required', 'accepted'], 'g-recaptcha-response' => [new GoogleRecaptchaRule], 'cf-turnstile-response' => [app(Turnstile::class)], ]; } public function authorize(): bool { return true; } #[\Override] public function messages(): array { return [ 'g-recaptcha-response.required' => __('The Google reCAPTCHA must be completed'), 'g-recaptcha-response.string' => __('The Google reCAPTCHA was submitted with an invalid type'), 'terms.required' => __('You must accept the terms and conditions'), ]; } }