Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max and min validation is not working properly #24

Open
mhetreramesh opened this issue Sep 20, 2016 · 2 comments
Open

Max and min validation is not working properly #24

mhetreramesh opened this issue Sep 20, 2016 · 2 comments

Comments

@mhetreramesh
Copy link

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',
@pensart
Copy link

pensart commented Nov 13, 2016

'phone_number' => 'required|integer|between:1,10'

@aminraeisi
Copy link

I have the same issue with this:

'price' => 'required_if:has_price,yes|min:1',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants