Support the ongoing development of Laravel.io →
Configuration Input Packages

Hi, I'm currently trying to get an excel file from an ftp conection. like this

$fileToProcess = Storage::disk('ftp')->get('InBox/file.xlsx');

But I get errors everytime I use the file in laravel-excel

Excel::load($fileToProcess,function($reader){ 
				$reader->each(function($sheet){
					model::insert($sheet->toArray());
					echo "<h1>Success</h1>";
				});
			});

Is there a way I can actually use this file? Or what workaround you guys recomend?

Thanks in Advance

Last updated 3 years ago.
0

what error are you getting ?

0

well I just couldn't load the file via ftp. I had to store it locally in order to work.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

omaromp2 omaromp2 Joined 21 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.