diff --git a/app/Http/Controllers/YoutubeDownloadController.php b/app/Http/Controllers/YoutubeDownloadController.php index 4a05556..3b64ff9 100644 --- a/app/Http/Controllers/YoutubeDownloadController.php +++ b/app/Http/Controllers/YoutubeDownloadController.php @@ -30,7 +30,7 @@ class YoutubeDownloadController extends Controller $videotitle = $video->getFile()->getFilename(); // Will return Phonebloks // $video->getFile(); // \SplFileInfo instance of downloaded file //$file_path = public_path('/downloads/'.$videotitle); - return redirect('/download/'.$videotitle); + return redirect()->route('/download/'.$videotitle); //return response()->download($file_path); } } diff --git a/public/downloads/.gitignore b/public/downloads/.gitignore new file mode 100644 index 0000000..e69de29