mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
30 lines
477 B
PHP
30 lines
477 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',
|
|
];
|
|
|
|
public function Soitem()
|
|
{
|
|
return $this->hasMany('App\Soitem');
|
|
}
|
|
|
|
public function company()
|
|
{
|
|
return $this->belongsTo('App\Company');
|
|
}
|
|
|
|
|
|
}
|