downloadAction->run($request); if(!is_null($return)) { return response($return['torrentFile']->dumpToString())->header('Content-Type', 'application/x-bittorrent') ->header('Content-Disposition', 'attachment; filename="' . $return['filename'] . '.torrent"'); } } }