errors.php 1.5 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. return [
  3. 'message' => [
  4. 'required' => 'The :attribute is mandatory' ,
  5. 'string' => 'The :attribute must be a string' ,
  6. 'integer' => 'The :attribute must be a number' ,
  7. 'boolean' => 'The :attribute must be true or false' ,
  8. 'array' => 'The :attribute must be an array' ,
  9. 'email' => 'The :attribute must be the email address' ,
  10. 'regex' => 'The template :attribute is wrong' ,
  11. 'notRegex' => 'The template :attribute is wrong' ,
  12. 'max' => 'The :attribute field should not be greater than :value' ,
  13. 'min' => 'The :attribute field should not be less than :value' ,
  14. 'size' => 'The field :attribute must be equal to :value' ,
  15. 'after' => 'The :attribute field must be larger than the :value field' ,
  16. 'before' => 'The :attribute field must be smaller than the :value field' ,
  17. 'in' => 'The field :attribute must be equal to one of the values :value' ,
  18. 'date' => 'The :attribute must be of date type' ,
  19. 'exists' => 'Such :attribute does not exist' ,
  20. 'unique' => 'Such :attribute exists' ,
  21. 'nationalCode' => 'The national code entered in the :attribute field is incorrect'
  22. ],
  23. 'attribute' => [
  24. 'firstName' => 'first name' ,
  25. 'lastName' => 'last name' ,
  26. 'phone' => 'phone'
  27. ]
  28. ];