Compare commits
	
		
			2 Commits
		
	
	
		
			32abf4ad92
			...
			429f77cfe1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 429f77cfe1 | ||
|  | 80178a97a2 | 
|  | @ -7,7 +7,7 @@ | |||
| class DownloadController extends Controller | ||||
| { | ||||
|     public function download($file_name) { | ||||
|         $file_path = public_path('/'.$file_name); | ||||
|         $file_path = public_path('/'.'downloads/'.$file_name); | ||||
|         return response()->download($file_path); | ||||
|     } | ||||
| } | ||||
|  |  | |||
|  | @ -18,4 +18,4 @@ | |||
| }); | ||||
| 
 | ||||
| Route::get('/download_api', 'App\Http\Controllers\YoutubeDownloadController@index'); | ||||
| Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@index'); | ||||
| Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download'); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue