"$zip = new ZipArchive()" gives me an error in the Artisan/Console class of ZipArchive not found..this is just a native PHP function, and I have Zip enabled in PHP. This same command works from a controller but not from the Command class
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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community