Monday, March 20, 2017

Validation Laravel required_if?

I have the following validation rule:

 "email_work" => "unique:users,email,".$user_id."|email|required_if:is_seller,1",

It requests field email_work despite there is not is_seller = 1 in request. What I doing wrong?



via Darama

Advertisement