Class 'ZipArchive' not found
i try to file export but zipArchive error
here is my controller code
public function export()
{
return Excel::download(new libraryExport, 'library.xlsx');
}
here is my libraryexport file
public function collection()
{
return Library::all();
}
You need to have the zip extension installed in your php.
sudo apt install php7.2-zip
@ftiersch
yes try this but error when try to install php 7.3
Command line option --enable-zip is not understood in combination with the other options
@sinnbeck yes i try this but noting same error
Did you run it using 7.3 ? My example was for 7.2 but as you just said, you are now running 7.3
@sinnbeck
sorry but i cant find php7.2 zip file can you please share link how to download 7.2 zip file
@ftiersch @sinnbeck thank you so much for helping me
i have run this command to zip file installation
sudo apt-get install php-zip and its working
Please or to participate in this conversation.