From a8099343ad269a9049711eca6db68de128b57920 Mon Sep 17 00:00:00 2001 From: cyberali Date: Sat, 20 Jul 2024 18:09:43 +0330 Subject: [PATCH] Roll back Category model --- app/Models/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }