Skip to content

Validating min/max numbers #85

@arnaslu

Description

@arnaslu

I'm trying to validate input number from GET parameter with this rule - integer|min:1|max:100. The value itself is a string '200' since it's coming from $_GET. In this case all rules pass, but I was hoping max:100 would fail. Do you have a suggestion how to force min/max rules to treat value as a number?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions