diff --git a/app/Models/User.php b/app/Models/User.php index a27e542bc..216194eef 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -52,11 +52,11 @@ class User extends Authenticatable public function request() { - return $this->hasMany('App\Models\UserRequest', 'id'); + return $this->hasMany('App\Models\UserRequest', 'users_id'); } public function download() { - return $this->hasMany('App\Models\UserDownload', 'id'); + return $this->hasMany('App\Models\UserDownload', 'users_id'); } }