Fixes on new model

This commit is contained in:
Ludovic CANDELLIER
2020-07-26 23:17:49 +02:00
parent 4de381db06
commit 71e27ce9c3
19 changed files with 116 additions and 55 deletions

View File

@@ -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);
}
}