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?
well I just couldn't load the file via ftp. I had to store it locally in order to work.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community