diff --git a/app/Models/Category.php b/app/Models/Category.php index 7493554..c8cdebc 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -83,7 +83,7 @@ class Category extends Model public function products() { - return $this->hasMany(Product::class); + return $this->belongsToMany(Product::class); }