Posted: 26-05-2019

Laravel alpha numeric validation

Laravel alpha numeric validation

Laravel provide a rich set of pre-bult validation rules.

If you need to validate alpha - numneric value you can use:

alpha

The field under validation must be entirely alphabetic characters.

alpha_dash

The field under validation may have alpha-numeric characters, as well as dashes and underscores.

alpha_num

The field under validation must be entirely alpha-numeric characters.

integer

The field under validation must be an integer.

max:value

The field under validation must be less than or equal to a maximum value.
Strings, numerics, arrays, and files are evaluated in the same fashion as the size rule.

min:value

The field under validation must have a minimum value.
Strings, numerics, arrays, and files are evaluated in the same fashion as the size rule.

numeric

The field under validation must be numeric.