Today in this article I will show you how to ziparchive class not found in laravel. If you have error class ‘ziparchive’ not found in any laravel application then I hope i will help you to solve this problem ziparchive class error. So if you are using ubuntu 16.04 or ubuntu 18.04 then you need to install php zip extension.
The fetal error is ziparchive not found,class ‘ziparchive’ not found, or excel ziparchive not found, or excel class ‘ziparchive’ is not found.
On this error occurs if we do not install Zip archive.
So In this solution i will show to you how to solve this error as bellow.
Solution for PHP 7.3:
sudo apt-get install php7.3-zip
Read Also : Laravel 8 Mobile Number Verification Tutorial
Solution for PHP 7.2:
sudo apt-get install php7.2-zip
Solution for PHP 7.1:
sudo apt-get install php7.1-zip
Solution for PHP 7.0:
sudo apt-get install php7.0-zip
Thanks for read. I hope it help you. For more you can follow us on facebook