mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-24 06:54:07 +00:00
Merge branch 'asif/contact' of gitlab.com:CIEFWorldwideSdnBhd/izyim-api into asif/warehouses
# Conflicts: # app/Http/Controllers/CompanyController.php # package-lock.json # routes/api.php
This commit is contained in:
@@ -10,6 +10,12 @@ 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');
|
||||
|
||||
Reference in New Issue
Block a user