rewrote validation library.
This commit is contained in:
@@ -2,50 +2,25 @@
|
||||
|
||||
return array(
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| General Validation Messages
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"acceptance_of" => "The :attribute must be accepted.",
|
||||
"confirmation_of" => "The :attribute confirmation does not match.",
|
||||
"exclusion_of" => "The :attribute value is invalid.",
|
||||
"format_of" => "The :attribute format is invalid.",
|
||||
"inclusion_of" => "The :attribute value is invalid.",
|
||||
"presence_of" => "The :attribute can't be empty.",
|
||||
"uniqueness_of" => "The :attribute has already been taken.",
|
||||
"with_callback" => "The :attribute is invalid.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Numericality_Of Validation Messages
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"number_not_valid" => "The :attribute must be a number.",
|
||||
"number_not_integer" => "The :attribute must be an integer.",
|
||||
"number_wrong_size" => "The :attribute must be :size.",
|
||||
"number_too_big" => "The :attribute must be no more than :max.",
|
||||
"number_too_small" => "The :attribute must be at least :min.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Length_Of Validation Messages
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"string_wrong_size" => "The :attribute must be :size characters.",
|
||||
"string_too_big" => "The :attribute must be no more than :max characters.",
|
||||
"string_too_small" => "The :attribute must be at least :min characters.",
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Upload_Of Validation Messages
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
"file_wrong_type" => "The :attribute must be a file of type: :types.",
|
||||
"file_too_big" => "The :attribute exceeds size limit of :maxkb.",
|
||||
"accepted" => "The :attribute must be accepted.",
|
||||
"active_url" => "The :attribute does not exist.",
|
||||
"alpha" => "The :attribute may only contain letters.",
|
||||
"alpha_dash" => "The :attribute may only contain letters, numbers, dashes, and underscores.",
|
||||
"alpha_num" => "The :attribute may only contain letters and numbers.",
|
||||
"between" => "The :attribute must be between :min - :max.",
|
||||
"confirmed" => "The :attribute confirmation does not match.",
|
||||
"email" => "The :attribute format is invalid.",
|
||||
"image" => "The :attribute must be an image.",
|
||||
"in" => "The selected :attribute is invalid.",
|
||||
"integer" => "The :attribute must be an integer.",
|
||||
"max" => "The :attribute must be less than :max.",
|
||||
"mimes" => "The :attribute must be a file of type: :values.",
|
||||
"min" => "The :attribute must be at least :min.",
|
||||
"not_in" => "The selected :attribute is invalid.",
|
||||
"numeric" => "The :attribute must be a number.",
|
||||
"required" => "The :attribute field is required.",
|
||||
"size" => "The :attribute must be :size.",
|
||||
"unique" => "The :attribute has already been taken.",
|
||||
"url" => "The :attribute format is invalid.",
|
||||
|
||||
);
|
||||
Reference in New Issue
Block a user