File manager - Edit - /var/www/html/homologBancodetalentos/app/Http/Requests/TalentBank/ForgotPasswordWebRequest.php
Back
<?php namespace App\Http\Requests\TalentBank; use Illuminate\Foundation\Http\FormRequest; class ForgotPasswordWebRequest extends FormRequest { public function authorize(): bool { return true; } protected function prepareForValidation(): void { $raw = (string) $this->input('cpf_cnpj', ''); $digits = preg_replace('/\D/', '', $raw); $this->merge(['document' => $digits]); } public function rules(): array { return [ 'cpf_cnpj' => ['required', 'string', 'min:11', 'max:18'], 'document' => ['required', 'string', 'regex:/^(\d{11}|\d{14})$/'], 'email' => ['required', 'string', 'email', 'max:255'], ]; } public function messages(): array { return [ 'document.regex' => __('password_recovery.invalid_document'), ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings