Open t-prod opened 4 years ago
Hi,
I have a form with several files with rules like this :
Field::make('Catalogue EN', 'catalog_file_en')->file()->rules('nullable|required_with:catalog_label_en|mimes:pdf,xls,xlsx'), Field::make('Libellé catalogue EN', 'catalog_label_en')->input()->rules('nullable|required_with:catalog_file_en'),
I have always the validation rule if I choose nothing for these fields. How can I do ?
Regards
Hi,
I have a form with several files with rules like this :
Field::make('Catalogue EN', 'catalog_file_en')->file()->rules('nullable|required_with:catalog_label_en|mimes:pdf,xls,xlsx'), Field::make('Libellé catalogue EN', 'catalog_label_en')->input()->rules('nullable|required_with:catalog_file_en'),
I have always the validation rule if I choose nothing for these fields. How can I do ?
Regards