Is you config cached perhaps? Try clearing the cache
php artisan config:clear
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I've a problem using Digital Ocean and spaces on Laravel 10. I filled my .env like this:
DO_SPACES_KEY=*************
DO_SPACES_SECRET=********************
DO_SPACES_ENDPOINT=fra1.digitaloceanspaces.com
DO_SPACES_REGION=FRA1
DO_SPACES_BUCKET=****************
All the keys are working because my colleagues are using the same as me, and we even tried to generate new one.
My config/filesystems.php :
'spaces' => [
'driver' => 's3',
'key' => env('DO_SPACES_KEY'),
'secret' => env('DO_SPACES_SECRET'),
'endpoint' => env('DO_SPACES_ENDPOINT'),
'region' => env('DO_SPACES_REGION'),
'bucket' => env('DO_SPACES_BUCKET'),
],
I got this error:
Disk named spaces cannot be accessed
Do you have an idea how can I fix it please ?
Please or to participate in this conversation.