This commit is contained in:
Mekan1206
2026-02-08 17:02:22 +05:00
parent 5337d2a804
commit d3a528d264

View File

@@ -5,7 +5,7 @@ namespace App\Models\Ecommerce\Product\Product\Concerns;
use App\Models\Common\Comment; use App\Models\Common\Comment;
use App\Models\Ecommerce\Channel\Channel; use App\Models\Ecommerce\Channel\Channel;
use App\Models\Ecommerce\Product\Brand\Brand; use App\Models\Ecommerce\Product\Brand\Brand;
use App\Models\Ecommerce\Product\Cart\Cart; use App\Models\Ecommerce\Product\Cart\CartItem;
use App\Models\Ecommerce\Product\Category\Category; use App\Models\Ecommerce\Product\Category\Category;
use App\Models\Ecommerce\Product\Collection\Collection; use App\Models\Ecommerce\Product\Collection\Collection;
use App\Models\Ecommerce\Product\Inventory\Inventory; use App\Models\Ecommerce\Product\Inventory\Inventory;
@@ -28,8 +28,8 @@ trait ProductRelationships
} }
/** /**
+ * Parent * Parent
+ */ */
public function parent(): BelongsTo public function parent(): BelongsTo
{ {
return $this->belongsTo(Product::class, 'parent_id'); return $this->belongsTo(Product::class, 'parent_id');
@@ -109,7 +109,7 @@ trait ProductRelationships
*/ */
public function carts(): BelongsTo public function carts(): BelongsTo
{ {
return $this->belongsTo(Cart::class); return $this->belongsTo(CartItem::class);
} }
/** /**