vendredi 3 juin 2016

Validator required_with not working in Laravel 5.1

I'am having the rules as below,

return [
        'bullet_egg' => 'numeric|min:0',
        'sales_bullet_egg' => 'required_with:bullet_egg'
    ];

But even when there is input given for bullet_egg, if there is input for sales_bullet_egg, it validates and gives the result. Why is that so? What I'am missing?

Any suggestions please. Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire