findTorrentTask->byUuid($request->route('uuid')); if(Storage::fileExists($torrent->filename)) { $torrentFile = TorrentFile::load(storage_path('app/' . $torrent->filename)); $torrentFile->setAnnounce($torrentFile->getAnnounce() . '/' . $request->user()->pid); return [ 'torrentFile' => $torrentFile, 'filename' => $torrent->name ]; } return null; } }