mirror of
https://github.com/flarum/core.git
synced 2025-08-23 00:23:25 +02:00
Merge pull request #66 from maelsoucaze/patch-1
Add some new Laravel's validation rules.
This commit is contained in:
@@ -19,11 +19,13 @@ validation:
|
|||||||
different: "The :attribute and :other must be different."
|
different: "The :attribute and :other must be different."
|
||||||
digits: "The :attribute must be :digits digits."
|
digits: "The :attribute must be :digits digits."
|
||||||
digits_between: "The :attribute must be between :min and :max digits."
|
digits_between: "The :attribute must be between :min and :max digits."
|
||||||
|
distinct: "The :attribute field has a duplicate value."
|
||||||
email: "The :attribute must be a valid email address."
|
email: "The :attribute must be a valid email address."
|
||||||
exists: "The selected :attribute is invalid."
|
exists: "The selected :attribute is invalid."
|
||||||
filled: "The :attribute field is required."
|
filled: "The :attribute field is required."
|
||||||
image: "The :attribute must be an image."
|
image: "The :attribute must be an image."
|
||||||
in: "The selected :attribute is invalid."
|
in: "The selected :attribute is invalid."
|
||||||
|
in_array: "The :attribute field does not exist in :other."
|
||||||
integer: "The :attribute must be an integer."
|
integer: "The :attribute must be an integer."
|
||||||
ip: "The :attribute must be a valid IP address."
|
ip: "The :attribute must be a valid IP address."
|
||||||
json: "The :attribute must be a valid JSON string."
|
json: "The :attribute must be a valid JSON string."
|
||||||
@@ -40,6 +42,7 @@ validation:
|
|||||||
array: "The :attribute must have at least :min items."
|
array: "The :attribute must have at least :min items."
|
||||||
not_in: "The selected :attribute is invalid."
|
not_in: "The selected :attribute is invalid."
|
||||||
numeric: "The :attribute must be a number."
|
numeric: "The :attribute must be a number."
|
||||||
|
present: "The :attribute field must be present."
|
||||||
regex: "The :attribute format is invalid."
|
regex: "The :attribute format is invalid."
|
||||||
required: "The :attribute field is required."
|
required: "The :attribute field is required."
|
||||||
required_if: "The :attribute field is required when :other is :value."
|
required_if: "The :attribute field is required when :other is :value."
|
||||||
|
Reference in New Issue
Block a user