belongsTo('App\Models\Shop\ArticleFamily'); } public function attributes() { return $this->hasMany('App\Models\Shop\ArticleAttribute'); } public function prices() { return $this->hasManyThrough('App\Models\Shop\ArticlePrice','App\Models\Shop\ArticleAttribute'); } public function inventories() { return $this->hasMany('App\Models\Shop\Inventory'); } public function invoiceItems() { return $this->hasMany('App\Models\Shop\InvoiceItem'); } public function product() { return $this->belongsTo($this->model, 'model_id'); } }