Надеюсь теперь работает

This commit is contained in:
p.belezov 2024-06-18 10:47:21 +08:00
parent 429f77cfe1
commit b4ea9a0665
2 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}

0
public/downloads/.gitignore vendored Normal file
View File