validation.php 3.9 KB

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