WIP
This commit is contained in:
1 parent
5337d2a804
commit
d3a528d264
1 file changed
+4
-4
@@ -5,7 +5,7 @@
|
|||||||
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 @@ public function variations(): HasMany
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
+ * 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 @@ public function inventories(): BelongsToMany
|
|||||||
*/
|
*/
|
||||||
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