first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Import\Http\Controllers\Admin;
class DownloadCsvController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$import_types = ['product' => 'products.csv'];
if (array_key_exists(request('import_type'), $import_types)) {
$path = storage_path('app/csv_templates/' . $import_types[request('import_type')]);
return response()->download($path);
}
}
}