|
@@ -28,6 +28,8 @@ public function rules(): array
|
|
|
|
|
|
|
|
'gender' => 'nullable|string|in:male,female,other,no_preference',
|
|
'gender' => 'nullable|string|in:male,female,other,no_preference',
|
|
|
'degree' => 'required|string|max:255',
|
|
'degree' => 'required|string|max:255',
|
|
|
|
|
+ 'company' => 'required|string|max:255',
|
|
|
|
|
+ 'profession' => 'required|string|max:255',
|
|
|
|
|
|
|
|
'email' => [
|
|
'email' => [
|
|
|
'required',
|
|
'required',
|
|
@@ -59,6 +61,8 @@ public function messages(): array
|
|
|
'birth_date.required' => 'A data de nascimento é obrigatória.',
|
|
'birth_date.required' => 'A data de nascimento é obrigatória.',
|
|
|
'cpf.required' => 'O CPF é obrigatório.',
|
|
'cpf.required' => 'O CPF é obrigatório.',
|
|
|
'degree.required' => 'O grau de parentesco é obrigatório.',
|
|
'degree.required' => 'O grau de parentesco é obrigatório.',
|
|
|
|
|
+ 'company.required' => 'A empresa é obrigatória.',
|
|
|
|
|
+ 'profession.required' => 'A profissão é obrigatória.',
|
|
|
'email.required' => 'O e-mail é obrigatório.',
|
|
'email.required' => 'O e-mail é obrigatório.',
|
|
|
'email.email' => 'Informe um e-mail válido.',
|
|
'email.email' => 'Informe um e-mail válido.',
|
|
|
'phone.required' => 'O telefone é obrigatório.',
|
|
'phone.required' => 'O telefone é obrigatório.',
|