Save File With Exact Name and Retrieve Directly

PHOTO EMBED

Fri Aug 19 2022 10:51:29 GMT+0000 (Coordinated Universal Time)

Saved by @eneki

// STORE   
public function uploadCrimsClientData()
    {
        $file = request()->file('client_data_file');
        $fileName = 'Client Source Data.xlsx';

        Storage::disk(env('BACKUP_FOLDER'))->putFileAs('imports', $file, $fileName);

        return back();
    }
// BACKUP_FOLDER = local/s3/etc

// RETRIEVE
$url = Storage::url('app/imports/Client Source Data.xlsx');

$clients = Excel::load($url, function ($reader) {
      })->get()->toArray()[0];
content_copyCOPY