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

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

@t-prod

Description

@t-prod

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions