mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-21 05:24:17 +00:00
54 lines
972 B
PHP
54 lines
972 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Shipment extends Model
|
|
{
|
|
protected $fillable = [
|
|
'id',
|
|
'loading_date',
|
|
'shipment_no',
|
|
'departure_port',
|
|
'container_no',
|
|
'type_of_container',
|
|
'last_etd',
|
|
'last_eta',
|
|
'driver_name',
|
|
'driver_contact_no',
|
|
'trailer_no',
|
|
'driver_ic_no',
|
|
'loading_address',
|
|
'loading_city',
|
|
'loading_state',
|
|
'contact_no',
|
|
'country',
|
|
'contact_person',
|
|
'remark',
|
|
'so_id',
|
|
'com_id',
|
|
];
|
|
|
|
|
|
public function shipmentitem()
|
|
{
|
|
return $this->hasMany('App\Shipmentitem');
|
|
}
|
|
|
|
public function so()
|
|
{
|
|
return $this->belongsTo('App\So');
|
|
}
|
|
|
|
public function company()
|
|
{
|
|
return $this->hasOne('App\Company');
|
|
}
|
|
|
|
public function Customexam()
|
|
{
|
|
return $this->hasOne('App\Customexam');
|
|
}
|
|
}
|