mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-28 08:54:03 +00:00
Added listing of Contacts frontend
This commit is contained in:
+5
-5
@@ -6,7 +6,7 @@ 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()
|
||||
@@ -17,18 +17,18 @@ class Company extends Model
|
||||
public function deliveryinfo() {
|
||||
|
||||
return $this->hasMany('App\Deliveryinfo');
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function warehouse() {
|
||||
|
||||
return $this->hasMany('App\Warehouse');
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function contact() {
|
||||
public function contacts() {
|
||||
|
||||
return $this->hasMany('App\Contact');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user