A free open source IT asset/license management system
Added very clunky but better error messages on that validation for date_format
snipea61ccbb9658d
diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.phpindex 18387310f8..31c9dcd85d 100644--- a/resources/lang/en/validation.php+++ b/resources/lang/en/validation.php@@ -120,6 +120,18 @@ return ['hashed_pass' => 'Your current password is incorrect','dumbpwd' => 'That password is too common.','statuslabel_type' => 'You must select a valid status label type',++ // date_format validation with slightly less stupid messages. It duplicates a lot, but it gets the job done :(+ // We use this because the default error message for date_format is reflects php Y-m-d, which non-PHP+ // people won't know how to format.+ 'purchase_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+ 'last_audit_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD hh:mm:ss format',+ 'expiration_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+ 'termination_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+ 'expected_checkin.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+ 'start_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+ 'end_date.date_format' => 'The :attribute must be a valid date in YYYY-MM-DD format',+],/*