पेज · Laravilt
Validation
Laravel validation rules, helpers and custom messages for form fields.
Fields collect Laravel validation rules. The schema validates them when the form is submitted.
Rule helpers
php
Custom rules
php
Messages and attribute names
php
Available helpers
| Method | Rule |
|---|---|
required() | required |
email() / url() | email / url |
numeric() / integer() | numeric / integer |
minLength(int) / maxLength(int) | min / max (strings) |
minValue() / maxValue() (or min() / max()) | min / max (numbers) |
unique(table, column, ignoreId, ignoreRecord) | unique |
exists(table, column) | exists |
confirmed() / same(field) | confirmed / same |
regex(pattern) | regex |
alpha() / alphaDash() / alphaNum() | alpha, alpha_dash, alpha_num |
rules(array|string|Closure) / rule(mixed) | Any Laravel rule |