lundi 6 août 2018

required_unless & required_without_all Laravel Array

 'cycleForms.*.files.*.realisation_end_date' => 'required_unless:cycleForms.*.files.*.file,!=,Pilih File',
        'cycleForms.*.files.*.file' => 'required_without_all:cycleForms.*.files.*.realisation_end_date|different:Pilih File',

I want realisation_end_date validate when file is not equal 'Pilih File' (working)

and

file validate when realisation_end_date is not null and file is not equal 'Pilih File' (not working)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire