Added listing of Contacts frontend

This commit is contained in:
Aqeeb Imtiaz Harun
2018-07-02 10:50:20 +08:00
parent 8054831b5c
commit 5412e1aa50
5 changed files with 102 additions and 194 deletions
+5 -5
View File
@@ -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');
}
}