validation.php 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. "accepted" => "The :attribute must be accepted.",
  14. "active_url" => "The :attribute is not a valid URL.",
  15. "after" => "The :attribute must be a date after :date.",
  16. "alpha" => "The :attribute may only contain letters.",
  17. "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
  18. "alpha_num" => "The :attribute may only contain letters and numbers.",
  19. "array" => "The :attribute must be an array.",
  20. "before" => "The :attribute must be a date before :date.",
  21. "between" => array(
  22. "numeric" => "The :attribute must be between :min - :max.",
  23. "file" => "The :attribute must be between :min - :max kilobytes.",
  24. "string" => "The :attribute must be between :min - :max characters.",
  25. "array" => "The :attribute must have between :min - :max items.",
  26. ),
  27. "confirmed" => "The :attribute confirmation does not match.",
  28. "date" => "The :attribute is not a valid date.",
  29. "date_format" => "The :attribute does not match the format :format.",
  30. "different" => "The :attribute and :other must be different.",
  31. "digits" => "The :attribute must be :digits digits.",
  32. "digits_between" => "The :attribute must be between :min and :max digits.",
  33. "email" => "The :attribute format is invalid.",
  34. "exists" => "The selected :attribute is invalid.",
  35. "image" => "The :attribute must be an image.",
  36. "in" => "The selected :attribute is invalid.",
  37. "integer" => "The :attribute must be an integer.",
  38. "ip" => "The :attribute must be a valid IP address.",
  39. "max" => array(
  40. "numeric" => "The :attribute may not be greater than :max.",
  41. "file" => "The :attribute may not be greater than :max kilobytes.",
  42. "string" => "The :attribute may not be greater than :max characters.",
  43. "array" => "The :attribute may not have more than :max items.",
  44. ),
  45. "mimes" => "The :attribute must be a file of type: :values.",
  46. "min" => array(
  47. "numeric" => "The :attribute must be at least :min.",
  48. "file" => "The :attribute must be at least :min kilobytes.",
  49. "string" => "The :attribute must be at least :min characters.",
  50. "array" => "The :attribute must have at least :min items.",
  51. ),
  52. "not_in" => "The selected :attribute is invalid.",
  53. "numeric" => "The :attribute must be a number.",
  54. "regex" => "The :attribute format is invalid.",
  55. "required" => "The :attribute field is required.",
  56. "required_if" => "The :attribute field is required when :other is :value.",
  57. "required_with" => "The :attribute field is required when :values is present.",
  58. "required_without" => "The :attribute field is required when :values is not present.",
  59. "same" => "The :attribute and :other must match.",
  60. "size" => array(
  61. "numeric" => "The :attribute must be :size.",
  62. "file" => "The :attribute must be :size kilobytes.",
  63. "string" => "The :attribute must be :size characters.",
  64. "array" => "The :attribute must contain :size items.",
  65. ),
  66. "unique" => "The :attribute has already been taken.",
  67. "url" => "The :attribute format is invalid.",
  68. /*
  69. |--------------------------------------------------------------------------
  70. | Custom Validation Language Lines
  71. |--------------------------------------------------------------------------
  72. |
  73. | Here you may specify custom validation messages for attributes using the
  74. | convention "attribute.rule" to name the lines. This makes it quick to
  75. | specify a specific custom language line for a given attribute rule.
  76. |
  77. */
  78. 'custom' => array(),
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Custom Validation Attributes
  82. |--------------------------------------------------------------------------
  83. |
  84. | The following language lines are used to swap attribute place-holders
  85. | with something more reader friendly such as E-Mail Address instead
  86. | of "email". This simply helps us make messages a little cleaner.
  87. |
  88. */
  89. 'attributes' => array(),
  90. );