Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Field file with rules is always required nullable not working #12

Open
t-prod opened this issue May 10, 2020 · 0 comments
Open

Field file with rules is always required nullable not working #12

t-prod opened this issue May 10, 2020 · 0 comments

Comments

@t-prod
Copy link

t-prod commented May 10, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant