mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-31 05:16:49 -04:00
28 lines
593 B
PHP
28 lines
593 B
PHP
<?php
|
|
|
|
namespace Modules\InhouseOrder\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Seller\Entities\SellerProductSKU;
|
|
use Modules\Shipping\Entities\ShippingMethod;
|
|
|
|
class InhouseOrderCart extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
|
|
public function product()
|
|
{
|
|
return $this->belongsTo(SellerProductSKU::class,'product_id','id');
|
|
}
|
|
|
|
public function shippingMethod()
|
|
{
|
|
return $this->belongsTo(ShippingMethod::class,'shipping_method_id','id');
|
|
}
|
|
|
|
}
|