['sometimes', 'string', sprintf('regex:%s', setting('username_regex')), 'min:3', 'max:25', Rule::unique('users')->ignore($this->user()->id), new WebsiteWordfilterRule], 'mail' => ['required', 'email', Rule::unique('users')->ignore($this->user()->id), new WebsiteWordfilterRule], 'motto' => ['nullable', 'string', 'max:127', new WebsiteWordfilterRule], 'g-recaptcha-response' => [new GoogleRecaptchaRule], 'cf-turnstile-response' => [app(Turnstile::class)], ]; } public function authorize(): bool { return true; } }