// 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];
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter