WIP
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user