spatie / laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel
https://spatie.be/open-source
MIT License
196 stars 51 forks source link

Drive [gcs] is not supported #49

Closed mobreviews closed 2 years ago

mobreviews commented 2 years ago
  I've done the composer install and added the section to my filesystem.php and configured my env variables but when I try to upload to it I get a message -
message: "Driver [gcs] is not supported.", exception: "InvalidArgumentException",…}
exception : "InvalidArgumentException"
file : "/app/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemManager.php"
line :  148
message :  "Driver [gcs] is not supported."

Ay ideas? I've only set the following 2 env variables as it appears all the others are optional.

GOOGLE_CLOUD_STORAGE_BUCKET=laravel_storage
GOOGLE_CLOUD_KEY_FILE=/app/360204-c02cb6578b45.json

before you say it my entire Laravel app is in an app folder so this is not the normal Laravel /app folder that folder is found at /app/app.

Originally posted by @mobreviews in https://github.com/spatie/laravel-google-cloud-storage/discussions/48

mobreviews commented 2 years ago

Please ignore this. I did a composer update and it appears to have solved the issue. There must have been an old dependency in my lock file somewhere.