class 'ziparchive' not found php 7.4 code example
Example 1: zip not found
sudo apt-get install zip
Example 2: ziparchive laravel not found
For the ZipArchive class to be present, PHP needs to have the zip extension installed.
See this page for installation instructions (both Linux and Windows).