diff --git a/app/models/User.php b/app/models/User.php index 5a3311c266a3..27b23bdb62ae 100755 --- a/app/models/User.php +++ b/app/models/User.php @@ -62,7 +62,7 @@ public function userlog() **/ public function userloc() { - return $this->hasOne('Location','id')->withTrashed(); + return $this->belongsTo('Location','location_id')->withTrashed(); } }