mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
35 lines
687 B
PHP
35 lines
687 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Company extends Model
|
|
{
|
|
|
|
protected $fillable = ['user_id', 'company_profile', 'reg_cert', 'company_name', 'registration_no', 'tax_no', 'tel_no', 'fax', 'address', 'city', 'postcode', 'state', 'country', 'contact_person'];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
|
|
public function deliveryinfo() {
|
|
|
|
return $this->hasMany('App\Deliveryinfo');
|
|
|
|
}
|
|
|
|
public function warehouse() {
|
|
|
|
return $this->hasMany('App\Warehouse');
|
|
|
|
}
|
|
|
|
public function contact() {
|
|
|
|
return $this->hasMany('App\Contact');
|
|
|
|
}
|
|
}
|