mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-03 06:16:14 -04:00
29 lines
675 B
PHP
29 lines
675 B
PHP
<?php
|
|
|
|
namespace Modules\MultiVendor\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Setup\Entities\City;
|
|
use Modules\Setup\Entities\Country;
|
|
use Modules\Setup\Entities\State;
|
|
|
|
class SellerWarehouseAddress extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
public function country(){
|
|
return $this->belongsTo(Country::class,'warehouse_country','id');
|
|
}
|
|
|
|
public function state(){
|
|
return $this->belongsTo(State::class, 'warehouse_state', 'id');
|
|
}
|
|
|
|
public function city(){
|
|
return $this->belongsTo(City::class,'warehouse_city','id');
|
|
}
|
|
}
|