Я использую laravel 6.1, и когда я использую request()->file('file')->store('avatars')
для хранения файла, он сохраняет файл .xlsx как .zip и файл .csv как .txt. Как решить эту проблему? Мой полный код -
$path = request()->file('file')->store('avatars');
$array = Excel::toArray(new CustomerImport, request()->file('file'));
$store_customers=Schema::getColumnListing('store_customers');
return view('pages.import.upload_customer',compact('array','path','store_customers'));