mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-09-28 18:13:06 -04:00
27 lines
655 B
PHP
27 lines
655 B
PHP
<?php
|
|
|
|
namespace Modules\Marketing\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Seller\Entities\SellerProduct;
|
|
|
|
class FlashDealProduct extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
|
|
public function flashDeal(){
|
|
return $this->belongsTo(FlashDeal::class,'flash_deal_id','id');
|
|
}
|
|
|
|
public function product(){
|
|
return $this->belongsTo(SellerProduct::class,'seller_product_id','id')->activeSeller();
|
|
}
|
|
public function productAll(){
|
|
return $this->belongsTo(SellerProduct::class,'seller_product_id','id');
|
|
}
|
|
}
|