mirror of
https://github.com/flarum/core.git
synced 2025-08-15 04:44:08 +02:00
Add some new Laravel's validation rules.
Refers to: -ef6b5a6343
-fa6c48d27c
-c36799ddde
-789c75c24a
This commit is contained in:
@@ -19,11 +19,13 @@ validation:
|
||||
different: "The :attribute and :other must be different."
|
||||
digits: "The :attribute must be :digits 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."
|
||||
exists: "The selected :attribute is invalid."
|
||||
filled: "The :attribute field is required."
|
||||
image: "The :attribute must be an image."
|
||||
in: "The selected :attribute is invalid."
|
||||
in_array: "The :attribute field does not exist in :other."
|
||||
integer: "The :attribute must be an integer."
|
||||
ip: "The :attribute must be a valid IP address."
|
||||
json: "The :attribute must be a valid JSON string."
|
||||
@@ -40,6 +42,7 @@ validation:
|
||||
array: "The :attribute must have at least :min items."
|
||||
not_in: "The selected :attribute is invalid."
|
||||
numeric: "The :attribute must be a number."
|
||||
present: "The :attribute field must be present."
|
||||
regex: "The :attribute format is invalid."
|
||||
required: "The :attribute field is required."
|
||||
required_if: "The :attribute field is required when :other is :value."
|
||||
|
Reference in New Issue
Block a user