Fatal error: Class 'ZipArchive' not found in php code example
Example: 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).