From 71b6bc6a0969145f6953472b59eff92cada77d73 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 18:09:43 +0200 Subject: [PATCH] #2783 --- src/app/Magic/Models/CubistMagicModelAbstract.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/Magic/Models/CubistMagicModelAbstract.php b/src/app/Magic/Models/CubistMagicModelAbstract.php index a1576b9..8a68f4c 100644 --- a/src/app/Magic/Models/CubistMagicModelAbstract.php +++ b/src/app/Magic/Models/CubistMagicModelAbstract.php @@ -15,10 +15,14 @@ use Illuminate\Support\Str; class CubistMagicModelAbstract extends Model { + use CubistMagicAttribute; use CrudTrait; use Sluggable, SluggableScopeHelpers; + protected $primaryKey = 'id'; + public $timestamps = true; + /** * @var Field[] */ @@ -29,10 +33,9 @@ class CubistMagicModelAbstract extends Model */ protected $_options = []; - private $__attributes; - - public $timestamps = true; - + /** + * @var array + */ protected $_slugFields = ['slug', 'title', 'name']; public function __construct(array $attributes = []) -- 2.39.5