diff --git a/app/Models/License.php b/app/Models/License.php index 41a3d7a52a..ff69d5f66d 100755 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -49,9 +49,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', + 'purchase_date' => 'date_format:Y-m-d|nullable|max:10', + 'expiration_date' => 'date_format:Y-m-d|nullable|max:10', + 'termination_date' => 'date_format:Y-m-d|nullable|max:10', ]; /** diff --git a/resources/views/licenses/edit.blade.php b/resources/views/licenses/edit.blade.php index f45e69ce96..cdbbc23e74 100755 --- a/resources/views/licenses/edit.blade.php +++ b/resources/views/licenses/edit.blade.php @@ -79,7 +79,7 @@