validation.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. | such as the size rules. Feel free to tweak each of these messages.
  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. "before" => "The :attribute must be a date before :date.",
  20. "between" => array(
  21. "numeric" => "The :attribute must be between :min - :max.",
  22. "file" => "The :attribute must be between :min - :max kilobytes.",
  23. "string" => "The :attribute must be between :min - :max characters.",
  24. ),
  25. "confirmed" => "The :attribute confirmation does not match.",
  26. "date" => "The :attribute is not a valid date.",
  27. "date_format" => "The :attribute does not match the format :format.",
  28. "different" => "The :attribute and :other must be different.",
  29. "digits" => "The :attribute must be :digits digits.",
  30. "digits_between" => "The :attribute must be between :min and :max digits.",
  31. "email" => "The :attribute format is invalid.",
  32. "exists" => "The selected :attribute is invalid.",
  33. "image" => "The :attribute must be an image.",
  34. "in" => "The selected :attribute is invalid.",
  35. "integer" => "The :attribute must be an integer.",
  36. "ip" => "The :attribute must be a valid IP address.",
  37. "max" => array(
  38. "numeric" => "The :attribute may not be greater than :max.",
  39. "file" => "The :attribute may not be greater than :max kilobytes.",
  40. "string" => "The :attribute may not be greater than :max characters.",
  41. ),
  42. "mimes" => "The :attribute must be a file of type: :values.",
  43. "min" => array(
  44. "numeric" => "The :attribute must be at least :min.",
  45. "file" => "The :attribute must be at least :min kilobytes.",
  46. "string" => "The :attribute must be at least :min characters.",
  47. ),
  48. "not_in" => "The selected :attribute is invalid.",
  49. "numeric" => "The :attribute must be a number.",
  50. "regex" => "The :attribute format is invalid.",
  51. "required" => "The :attribute field is required.",
  52. "required_if" => "The :attribute field is required when :other is :value.",
  53. "required_with" => "The :attribute field is required when :values is present.",
  54. "required_without" => "The :attribute field is required when :values is not present.",
  55. "same" => "The :attribute and :other must match.",
  56. "size" => array(
  57. "numeric" => "The :attribute must be :size.",
  58. "file" => "The :attribute must be :size kilobytes.",
  59. "string" => "The :attribute must be :size characters.",
  60. ),
  61. "unique" => "The :attribute has already been taken.",
  62. "url" => "The :attribute format is invalid.",
  63. /*
  64. |--------------------------------------------------------------------------
  65. | Custom Validation Language Lines
  66. |--------------------------------------------------------------------------
  67. |
  68. | Here you may specify custom validation messages for attributes using the
  69. | convention "attribute.rule" to name the lines. This makes it quick to
  70. | specify a specific custom language line for a given attribute rule.
  71. |
  72. */
  73. 'custom' => array(),
  74. /*
  75. |--------------------------------------------------------------------------
  76. | Custom Validation Attributes
  77. |--------------------------------------------------------------------------
  78. |
  79. | The following language lines are used to swap attribute place-holders
  80. | with something more reader friendly such as E-Mail Address instead
  81. | of "email". This simply helps us make messages a little cleaner.
  82. |
  83. */
  84. 'attributes' => array(),
  85. );