|
@@ -38,7 +38,7 @@ class FirstAccessRegisterRequest extends FormRequest
|
|
|
'position_id' => 'required|integer|exists:positions,id',
|
|
'position_id' => 'required|integer|exists:positions,id',
|
|
|
'sector_id' => 'required|integer|exists:sectors,id',
|
|
'sector_id' => 'required|integer|exists:sectors,id',
|
|
|
'password' => ['required', 'confirmed', Password::min(8)->mixedCase()->numbers()],
|
|
'password' => ['required', 'confirmed', Password::min(8)->mixedCase()->numbers()],
|
|
|
- // Obrigatória apenas quando a administração ainda não cadastrou uma foto para o associado.
|
|
|
|
|
|
|
+ 'terms_accepted' => ['accepted'],
|
|
|
'photo' => ['nullable', Rule::requiredIf(fn(): bool => !$user?->photo_path), 'image', 'max:5120'],
|
|
'photo' => ['nullable', Rule::requiredIf(fn(): bool => !$user?->photo_path), 'image', 'max:5120'],
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|