mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
29 lines
658 B
PHP
29 lines
658 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Forwarder extends AbstractModel
|
|
{
|
|
protected $table = 'forwarder';
|
|
|
|
protected $fillable = [
|
|
'name', 'email', 'street_one', 'street_two', 'city', 'state', 'post_code', 'country', 'shipping_rate','overdue_days','markup_percentage','minimum_cbm'
|
|
];
|
|
|
|
public function customerRelation()
|
|
{
|
|
return $this->hasMany(CustomerRelation::class, 'forwarder_id');
|
|
}
|
|
|
|
public function locationFees()
|
|
{
|
|
return $this->hasMany(LocationFees::class, 'forwarder_id');
|
|
}
|
|
|
|
public function serviceFees()
|
|
{
|
|
return $this->hasMany(ServiceFees::class, 'forwarder_id');
|
|
}
|
|
|
|
}
|