From 619260a9ed77f8180d87f366b8b4936db73086ea Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Mon, 19 Jun 2023 13:01:13 +0200 Subject: [PATCH] fix construct service model --- app/Models/Service.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Models/Service.php b/app/Models/Service.php index 89220aa..26cd040 100644 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -37,9 +37,12 @@ class Service extends Model /** * Service + * + * @param array $attributes */ - public function __construct() + public function __construct(array $attributes = []) { + parent::__construct($attributes); $this->cacheFor = config('api.servicesDBCache') * 60; }