The “Class ‘ZipArchive’ not found” error occurs when we do not have the zip extension enabled or installed; Let's see how we can solve the problem.
Laragon
In Laragon on Windows it is as simple as going to extensions and enabling zip:
Other systems
On other systems, check if the zip Extension is Enabled:
Open the php.ini file in a text editor.
Find the following line:
;extension=zip
Remove the semicolon at the beginning of the line to enable the extension:
extension=zip
Save the changes and restart your web server and/or PHP.
In Linux environments, you can run the following command in the terminal to install the zip extension:
sudo apt-get install php-zip
Restart your web server and/or PHP.
Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter