first you should try using new \ZipArchive()
and second....controller uses php-fpm or mod-php, but artisan command uses cli. On linux any of this can have seperate php.ini file and different modules. Check that you cli php has zip module instead. You can run "php -i | grep zip" and see if it is installed
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us