mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-10-10 09:13:03 -04:00
24 lines
503 B
PHP
24 lines
503 B
PHP
<?php
|
|
|
|
namespace Modules\Seller\Entities;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Setup\Entities\Country;
|
|
|
|
class Supplier extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected static function newFactory()
|
|
{
|
|
return \Modules\Seller\Database\factories\SupplierFactory::new();
|
|
}
|
|
|
|
public function country(){
|
|
return Country::where('code',$this->country)->firstOrFail();
|
|
}
|
|
}
|