I'm using this library link
And everything works very well except for two things, ps when downloading the download in the project folder which when uploading to production fails ps does not lower anything, I guess for the permissions.
As you can see, there is download in the home of the project "
ClinicUsers.xlsx
", but in production there is nothing left:
Here are the lines with which you save:
$writer = new Xlsx($spreadsheet);
$writer->save('ClinicUsers.xlsx');
return $this->redirect(['action' => 'index']);
And I do not understand or know what changes should be made so that the client can choose the download route or that it is downloaded to the PC.