Enforce Y-m-d as date format for date fields

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2023-01-24 13:38:53 -08:00
parent 7a9ea91be0
commit 3c4f254583
6 changed files with 13 additions and 7 deletions
+3
View File
@@ -50,6 +50,9 @@ class License extends Depreciable
'category_id' => 'required|exists:categories,id',
'company_id' => 'integer|nullable',
'purchase_cost'=> 'numeric|nullable|gte:0',
'purchase_date' => 'date_format:Y-m-d|nullable',
'expiration_date' => 'date_format:Y-m-d|nullable',
'termination_date' => 'date_format:Y-m-d|nullable',
];
/**