laravel-validator
laravel-validator copied to clipboard
Max and min validation is not working properly
I have to validate user phone number which should only be 10 digits, so I have added following validation, but this is not working. I'm missing something or this is the bug?
'phone_number' => 'required|numeric|min:10|max:10',
'phone_number' => 'required|integer|between:1,10'
I have the same issue with this:
'price' => 'required_if:has_price,yes|min:1',