¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

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