Fixes on new model
This commit is contained in:
@@ -46,4 +46,9 @@ class Article extends Model implements HasMedia
|
||||
return $this->belongsTo($this->model, 'model_id');
|
||||
}
|
||||
|
||||
public function scopeByArticle($query, $id)
|
||||
{
|
||||
return $query->where('shop_articles.id',$id);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user