Laravel Excel::store file empty after stored
PHP Snippet 1:
// Where 'files' is the name of the upload field in HTML.
$request->file('files')->store('documents');
PHP Snippet 2:
$fileNameToStore = $request->file('files')[0]
Storage::disk('documents')->put($fileNameToStore, fopen($file, 'r+'));
PHP Snippet 3:
$file->storeAs('',$file->getClientOriginalName(),'documents');