Add management of merchandises, enhance imageable trait

This commit is contained in:
Ludovic CANDELLIER
2022-04-16 11:40:19 +02:00
parent 68a13b7a58
commit 2d111605f2
8 changed files with 40 additions and 22 deletions

View File

@@ -26,6 +26,6 @@ class Merchandise extends Model implements HasMedia
public function tags()
{
return $this->morphToMany('App\Models\Shop\Tag', 'taggable');
return $this->morphToMany(Tag::class, 'taggable');
}
}