In Bitnami Lampp : ZipArchive::close()
If storage directory is already owned by the bitnami user and has group ownership set to daemon, which is likely the web server user group. However, we may need to ensure that the group has write permissions to the storage directory and its subdirectories.
Run the following commands to grant write permissions to the daemon group for the storage directory and its subdirectories:
cd /path/to/your/laravel_project sudo chgrp -R daemon storage sudo chmod -R 775 storage
In Ubuntu apache
cd /path/to/your/laravel_project sudo chown -R www-data:www-data storage sudo chmod -R 775 storage
Make sure you restart the apache/bitnami after this command.