mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-30 20:16:46 -04:00
29 lines
671 B
PHP
29 lines
671 B
PHP
<?php
|
|
|
|
namespace Modules\Customer\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 CustomerAddress extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $guarded = ["id"];
|
|
protected $fillable = [];
|
|
|
|
public function getCountry(){
|
|
return $this->belongsTo(Country::class,'country','id');
|
|
}
|
|
|
|
public function getState(){
|
|
return $this->belongsTo(State::class,'state','id');
|
|
}
|
|
|
|
public function getCity(){
|
|
return $this->belongsTo(City::class,'city','id');
|
|
}
|
|
}
|