| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Http\Requests;
- use Illuminate\Foundation\Http\FormRequest;
- class AssociateValidationRequest extends FormRequest
- {
- public function authorize(): bool
- {
- return true;
- }
- public function rules(): array
- {
- return [
- 'cpf' => [
- 'nullable',
- 'string',
- 'required_without_all:name,registration',
- ],
- 'name' => [
- 'nullable',
- 'string',
- 'required_without_all:cpf,registration',
- ],
- 'registration' => [
- 'nullable',
- 'string',
- 'required_without_all:cpf,name',
- ],
- ];
- }
- }
|