validation.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used
  9. | by the validator class. Some of the rules contain multiple versions,
  10. | such as the size (max, min, between) rules. These versions are used
  11. | for different input types such as strings and files.
  12. |
  13. | These language lines may be easily changed to provide custom error
  14. | messages in your application. Error messages for custom validation
  15. | rules may also be added to this file.
  16. |
  17. */
  18. "accepted" => "The :attribute must be accepted.",
  19. "active_url" => "The :attribute is not a valid URL.",
  20. "after" => "The :attribute must be a date after :date.",
  21. "alpha" => "The :attribute may only contain letters.",
  22. "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.",
  23. "alpha_num" => "The :attribute may only contain letters and numbers.",
  24. "before" => "The :attribute must be a date before :date.",
  25. "between" => array(
  26. "numeric" => "The :attribute must be between :min - :max.",
  27. "file" => "The :attribute must be between :min - :max kilobytes.",
  28. "string" => "The :attribute must be between :min - :max characters.",
  29. ),
  30. "confirmed" => "The :attribute confirmation does not match.",
  31. "different" => "The :attribute and :other must be different.",
  32. "email" => "The :attribute format is invalid.",
  33. "exists" => "The selected :attribute is invalid.",
  34. "image" => "The :attribute must be an image.",
  35. "in" => "The selected :attribute is invalid.",
  36. "integer" => "The :attribute must be an integer.",
  37. "ip" => "The :attribute must be a valid IP address.",
  38. "match" => "The :attribute format is invalid.",
  39. "max" => array(
  40. "numeric" => "The :attribute must be less than :max.",
  41. "file" => "The :attribute must be less than :max kilobytes.",
  42. "string" => "The :attribute must be less than :max characters.",
  43. ),
  44. "mimes" => "The :attribute must be a file of type: :values.",
  45. "min" => array(
  46. "numeric" => "The :attribute must be at least :min.",
  47. "file" => "The :attribute must be at least :min kilobytes.",
  48. "string" => "The :attribute must be at least :min characters.",
  49. ),
  50. "not_in" => "The selected :attribute is invalid.",
  51. "numeric" => "The :attribute must be a number.",
  52. "required" => "The :attribute field is required.",
  53. "same" => "The :attribute and :other must match.",
  54. "size" => array(
  55. "numeric" => "The :attribute must be :size.",
  56. "file" => "The :attribute must be :size kilobyte.",
  57. "string" => "The :attribute must be :size characters.",
  58. ),
  59. "unique" => "The :attribute has already been taken.",
  60. "url" => "The :attribute format is invalid.",
  61. /*
  62. |--------------------------------------------------------------------------
  63. | Custom Validation Language Lines
  64. |--------------------------------------------------------------------------
  65. |
  66. | Here you may specify custom validation messages for attributes using the
  67. | convention "attribute_rule" to name the lines. This helps keep your
  68. | custom validation clean and tidy.
  69. |
  70. | So, say you want to use a custom validation message when validating that
  71. | the "email" attribute is unique. Just add "email_unique" to this array
  72. | with your custom message. The Validator will handle the rest!
  73. |
  74. */
  75. 'custom' => array(),
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Validation Attributes
  79. |--------------------------------------------------------------------------
  80. |
  81. | The following language lines are used to swap attribute place-holders
  82. | with something more reader friendly such as "E-Mail Address" instead
  83. | of "email". Your users will thank you.
  84. |
  85. | The Validator class will automatically search this array of lines it
  86. | is attempting to replace the :attribute place-holder in messages.
  87. | It's pretty slick. We think you'll like it.
  88. |
  89. */
  90. 'attributes' => array(),
  91. );