From b4ea9a0665cda9d4f3df7dd0bfabd6fb307ff571 Mon Sep 17 00:00:00 2001
From: "p.belezov"
Date: Tue, 18 Jun 2024 10:47:21 +0800
Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B4=D0=B5=D1=8E=D1=81=D1=8C=20?=
=?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=80=D0=B0=D0=B1=D0=BE?=
=?UTF-8?q?=D1=82=D0=B0=D0=B5=D1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/Http/Controllers/YoutubeDownloadController.php | 2 +-
public/downloads/.gitignore | 0
2 files changed, 1 insertion(+), 1 deletion(-)
create mode 100644 public/downloads/.gitignore
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