mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 20:44:04 +00:00
36 lines
595 B
PHP
36 lines
595 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class So extends Model
|
|
{
|
|
protected $fillable = [
|
|
'ff_id',
|
|
'supplier_company_name',
|
|
'supplier_contact_person',
|
|
'supplier_contact_person_no',
|
|
'delivery_id',
|
|
'warehouse_id',
|
|
'com_id',
|
|
];
|
|
|
|
public function soitem()
|
|
{
|
|
return $this->hasMany('App\Soitem');
|
|
}
|
|
|
|
public function company()
|
|
{
|
|
return $this->belongsTo('App\Company');
|
|
}
|
|
|
|
public function shipmentitem()
|
|
{
|
|
return $this->hasMany('App\Shipmentitem');
|
|
}
|
|
|
|
|
|
}
|