From 8fe45348f57b072e2b94ec206dce7479fe4147e3 Mon Sep 17 00:00:00 2001 From: Zain Fauzan Rofie Azizi Date: Fri, 6 Jul 2018 10:54:12 +0800 Subject: [PATCH] relationship path fixed --- app/Contact.php | 4 ++-- app/DeliveryInfo.php | 2 +- app/Warehouse.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Contact.php b/app/Contact.php index fdc4610..0b0233d 100644 --- a/app/Contact.php +++ b/app/Contact.php @@ -10,13 +10,13 @@ class Contact extends Model public function user() { - return $this->belongsTo(App/User); + return $this->belongsTo(App\User); } public function company(){ - return $this->belongsTo(App/Company); + return $this->belongsTo(App\Company); } diff --git a/app/DeliveryInfo.php b/app/DeliveryInfo.php index b5ef49c..7618843 100644 --- a/app/DeliveryInfo.php +++ b/app/DeliveryInfo.php @@ -22,7 +22,7 @@ class Deliveryinfo extends Model public function company(){ - return $this->belongsTo(App/Company); + return $this->belongsTo(App\Company); } diff --git a/app/Warehouse.php b/app/Warehouse.php index 0609d99..23ffe3d 100644 --- a/app/Warehouse.php +++ b/app/Warehouse.php @@ -22,7 +22,7 @@ class Warehouse extends Model public function company(){ - return $this->belongsTo(App/Company); + return $this->belongsTo(App\Company); }