From: Vincent Vanwaelscappel Date: Fri, 24 May 2019 16:09:43 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=71b6bc6a0969145f6953472b59eff92cada77d73;p=cubist_cms-back.git #2783 --- 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 = [])