belongsTo('App\Models\Shop\ArticleFamily','article_family_id'); } public function Inventories() { return $this->hasMany('App\Models\Shop\Inventory'); } public function Prices() { return $this->hasMany('App\Models\Shop\ArticlePrice'); } public function Attributes() { return $this->hasManyThrough('App\Models\Shop\ArticleAttribute','App\Models\Shop\ArticlePrice'); } public function InvoiceItems() { return $this->hasMany('App\Models\Shop\InvoiceItem'); } public function Product() { return $this->belongsTo($this->model, 'model_id'); } }