-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from bowphp/5.x-ref-update
Update default validation translate content
- Loading branch information
Showing
4 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
<?php | ||
|
||
return [ | ||
'email' => 'The field {attribute} must be an email.', | ||
'required' => 'The field {attribute} is required.', | ||
'empty' => 'The field {attribute} is missing in the fields to be validated.', | ||
'min' => 'The field {attribute} must be at least {length} characters long.', | ||
'max' => 'The field {attribute} must not exceed {length} characters.', | ||
'same' => 'The field {attribute} must be the same as {value}.', | ||
'number' => 'The field {attribute} must be a number.', | ||
'int' => 'The field {attribute} must be an integer.', | ||
'float' => 'The field {attribute} must be a decimal.', | ||
'email' => 'The {attribute} field must be an email.', | ||
'required' => 'The {attribute} field is required.', | ||
'empty' => 'The {attribute} field is missing in the fields to be validated.', | ||
'min' => 'The {attribute} field must be at least {length} characters long.', | ||
'max' => 'The {attribute} field must not exceed {length} characters.', | ||
'same' => 'The {attribute} field must be the same as {value}.', | ||
'number' => 'The {attribute} field must be a number.', | ||
'int' => 'The {attribute} field must be an integer.', | ||
'float' => 'The {attribute} field must be a decimal.', | ||
'alphanum' => 'Only alphanumeric characters are allowed for field {attribute}.', | ||
'in' => 'The field {attribute} must be one of the following {value}.', | ||
'size' => 'The field {attribute} must be {length} characters long.', | ||
'in' => 'The {attribute} field must be one of the following {value}.', | ||
'size' => 'The {attribute} field must be {length} characters long.', | ||
'lower' => 'Only lowercase letters are allowed for field {attribute}.', | ||
'upper' => 'Only uppercase letters are allowed for field {attribute}.', | ||
'alpha' => 'Only alphabetic characters are allowed for field {attribute}.', | ||
'exists' => 'The field {attribute} does not exists.', | ||
'not_exists' => 'The field {attribute} already exists.', | ||
'unique' => 'The field {attribute} must be unique.', | ||
'date' => 'The field {attribute} must use the format: yyyy-mm-dd', | ||
'datetime' => 'The field {attribute} must use the format: yyyy-mm-dd hh:mm:ss', | ||
'regex' => 'The field {attribute} does not match the pattern', | ||
'exists' => 'The {attribute} field does not exists.', | ||
'not_exists' => 'The {attribute} field already exists.', | ||
'unique' => 'The {attribute} field must be unique.', | ||
'date' => 'The {attribute} field must use the format: yyyy-mm-dd', | ||
'datetime' => 'The {attribute} field must use the format: yyyy-mm-dd hh:mm:ss', | ||
'regex' => 'The {attribute} field does not match the pattern', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters