Skip to content

Commit a816751

Browse files
authored
Merge pull request #53 from PunchRockgroin/ExcelImportPathAndDiskFix
Fix path and disk for Excel::import()
2 parents 68b3db5 + 2862c33 commit a816751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/HasExcelImportAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private function importData(): Closure
9292
}
9393

9494
try {
95-
Excel::import($importObject, $data['upload']);
95+
Excel::import($importObject, $data['upload']->getRealPath(), $this->disk);
9696

9797
if (is_callable($this->afterImportClosure)) {
9898
call_user_func($this->afterImportClosure, $data, $livewire);

0 commit comments

Comments
 (0)