Validation on required_if
how can i ignore "amount" IF "fee" = 2 ? i keep getting rule for integer on "amount" . do i need to use bail or something else ?
'fee' => 'required',
'amount' => 'required_if:fee,=,1|integer|gte:1',
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!