From 90286315f2ac698cc35038de3f89b3967003e41c Mon Sep 17 00:00:00 2001 From: Zain Fauzan Rofie Azizi Date: Wed, 20 Jun 2018 12:02:45 +0800 Subject: [PATCH] change to small letter --- app/Contact.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/Contact.php b/app/Contact.php index 43e73f2..62f2f64 100644 --- a/app/Contact.php +++ b/app/Contact.php @@ -8,20 +8,18 @@ class Contact extends Model { protected $fillable = ['company_id']; - - - public function User() + public function user() { - return $this->belongsTo(User::class); + return $this->belongsTo(App/User); } - public function Company() + public function company() { - return $this->belongsTo(Company::class); + return $this->belongsTo(App/Company); }