validation.php 3.24 KB
Newer Older
1 2 3 4
<?php 

return array(

5 6 7 8 9 10
	/*
	|--------------------------------------------------------------------------
	| Validation Attribute Language Lines
	|--------------------------------------------------------------------------
	|
	| The following language lines are used to swap attribute place-holders
11 12
	| with something more reader friendly such as "E-Mail Address" instead
	| of "email". Your users will thank you.
13
	|
14 15 16
	| The Validator class will automatically search this array of lines it
	| is attempting to replace the :attribute place-holder in messages.
	| It's pretty slick. We think you'll like it.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
	|
	*/

	'attributes' => array(),

	/*
	|--------------------------------------------------------------------------
	| Validation Language Lines
	|--------------------------------------------------------------------------
	|
	| The following language lines contain the default error messages used
	| by the validator class. Some of the rules contain multiple versions,
	| such as the size (max, min, between) rules. These versions are used
	| for different input types such as strings and files.
	|
32 33 34
	| These language lines may be easily changed to provide custom error
	| messages in your application. Error messages for custom validation
	| rules may also be added to this file.
35 36 37
	|
	*/

38 39 40 41 42
	"accepted"       => "The :attribute must be accepted.",
	"active_url"     => "The :attribute is not a valid URL.",
	"alpha"          => "The :attribute may only contain letters.",
	"alpha_dash"     => "The :attribute may only contain letters, numbers, and dashes.",
	"alpha_num"      => "The :attribute may only contain letters and numbers.",
Taylor Otwell committed
43 44 45 46 47
	"between"        => array(
		"numeric" => "The :attribute must be between :min - :max.",
		"file"    => "The :attribute must be between :min - :max kilobytes.",
		"string"  => "The :attribute must be between :min - :max characters.",
	),
48 49
	"confirmed"      => "The :attribute confirmation does not match.",
	"email"          => "The :attribute format is invalid.",
50
	"exists"         => "The selected :attribute is invalid.",
51 52 53
	"image"          => "The :attribute must be an image.",
	"in"             => "The selected :attribute is invalid.",
	"integer"        => "The :attribute must be an integer.",
54
	"ip"             => "The :attribute must be a valid IP address.",
Taylor Otwell committed
55 56 57 58 59
	"max"            => array(
		"numeric" => "The :attribute must be less than :max.",
		"file"    => "The :attribute must be less than :max kilobytes.",
		"string"  => "The :attribute must be less than :max characters.",
	),
60
	"mimes"          => "The :attribute must be a file of type: :values.",
Taylor Otwell committed
61 62 63 64 65
	"min"            => array(
		"numeric" => "The :attribute must be at least :min.",
		"file"    => "The :attribute must be at least :min kilobytes.",
		"string"  => "The :attribute must be at least :min characters.",
	),
66 67 68
	"not_in"         => "The selected :attribute is invalid.",
	"numeric"        => "The :attribute must be a number.",
	"required"       => "The :attribute field is required.",
Taylor Otwell committed
69 70 71 72 73
	"size"           => array(
		"numeric" => "The :attribute must be :size.",
		"file"    => "The :attribute must be :size kilobyte.",
		"string"  => "The :attribute must be :size characters.",
	),
74 75
	"unique"         => "The :attribute has already been taken.",
	"url"            => "The :attribute format is invalid.",
76

77
);