mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
c59fb24537
# Conflicts: # app/Http/Controllers/CompanyController.php # package-lock.json # routes/api.php
30 lines
615 B
PHP
30 lines
615 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'];
|
|
//protected $guarded = [];
|
|
|
|
|
|
public function Contact()
|
|
|
|
{
|
|
return $this->hasMany(Contact::class);
|
|
}
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User');
|
|
}
|
|
|
|
public function deliveryinfo() {
|
|
|
|
return $this->hasMany('App\Deliveryinfo');
|
|
|
|
}
|
|
}
|