However instead you should store the file locally, do the updates and export the file again. After that should be able to delete it again. I bet you can make that work ;)
So far, i've made an Import where i change the value of the Collection
public function collection(Collection $collection)
{
foreach ($collection as $row)
{
//Change to Collection Here
}
$this->data = $collection;
}
public function getData() {
return $this->data;
}
And then im passing that new Collection in the controller and call the Export class with the new Collection as a parameter for the Data.
Is this a good way to do it or i would gain alot of performance by storing it locally and then deleting it once the export is done?