Superbalist / laravel-google-cloud-storage

A Google Cloud Storage filesystem for Laravel
MIT License
509 stars 145 forks source link

Disk [gcs] does not have a configured driver. Laravel 7.24 #107

Open ahmadpy888 opened 3 years ago

ahmadpy888 commented 3 years ago

hi, when i use gcs like tuttorial, i get an error "Disk [gcs] does not have a configured driver.". I use laravel 7.24 and laravel-google-cloud-storage 2.2.3.

filesystem.php 'gcs' => [ 'driver' => 'gcs', 'project_id' => env('GOOGLE_CLOUD_PROJECT_ID'), 'key_file' => env('GOOGLE_CLOUD_KEY_FILE', null), // optional: /path/to/service-account.json 'bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET'), 'path_prefix' => env('GOOGLE_CLOUD_STORAGE_PATH_PREFIX', null), // optional: /default/path/to/apply/in/bucket 'storage_api_uri' => env('GOOGLE_CLOUD_STORAGE_API_URI', null), // see: Public URLs below 'visibility' => 'public', // optional: public|private ],

heb1k0 commented 3 years ago

Have you been able to solve it? i am the same

Afatkharrofiqi commented 3 years ago

just run php artisan config:cache, and it works for me

praveen27091993 commented 2 years ago

Line 117 Disk [public] does not have a configured driver. Tried php artisan config:cache not working pls suggest some solution

hms5232 commented 1 year ago

If you in local and local doesn't has any cache, try to restart the supervisor worker. This work for me.