Laravel Validation

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Parameters

ParameterDetails
requiredThe field is required
sometimesRun validation checks against a field only if that field is present in the input array
emailThe input is a valid email
max:valueThe input value should be below the maximum value
unique:db_table_nameThe input value should be unique in the provided database table name
acceptedYes / On / 1 true, useful for checking TOS
active_urlMust be a valid URL according to checkdnsrr
after :dateField under validation must provide a value after the given date
alphaThe field under validation must be entirely alphabetic characters.
alpha_dashThe field under validation may have alpha-numeric characters, as well as dashes and underscores.
alpha_numThe field under validation must be entirely alpha-numeric characters.
arrayMust be a PHP array
before :dateThe field must be a value under the given date
between:min,maxThe input value should be in between minimum (min) and maximum (max) value
booleanThe field under validation must be able to be cast as a boolean. Accepted input are true, false, 1, 0, "1", and "0".
confirmedThe field under validation must have a matching field of foo_confirmation. For example, if the field under validation is password, a matching password_confirmation field must be present in the input.
dateThe field under validation must be a valid date according to the strtotime PHP function.
integerThe field under validation must be an integer
stringThe field under validation must be a string type.


Got any Laravel Question?