芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/routes/global.php
prefix('global')->name('global.')->group(function(){ Route::post('get-states','getStates')->name('country.states'); Route::post('get-cities','getCities')->name('country.cities'); Route::post('get-countries','getCountries')->name('countries'); Route::post('get-timezones','getTimezones')->name('timezones'); }); // FileHolder Routes Route::post('fileholder-upload',[FileController::class,'storeFile'])->name('fileholder.upload'); Route::post('fileholder-remove',[FileController::class,'removeFile'])->name('fileholder.remove'); Route::get("file/download/{path_source}/{name}",function($path_source,$file_name) { $file_link = get_files_path($path_source) . "/" . $file_name; if(File::exists($file_link)) return response()->download($file_link); return back()->with(['error' => ['File doesn\'t exists']]); })->name('file.download');