belongsTo(User::class, 'userid'); } public function torrent() { return $this->belongsTo(Torrent::class. 'torrentid'); } }