Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

edi_smooth's avatar

Laravel Nova - Digitalocean spaces permissions

Hi,

I was trying to use Image upload to digitalocean spaces (it's compatible with s3). Unfortunately when I try to show image preview I've got permission error. I know that I have to set read permission to public. My Nova Page.php file:

Image::make('Image', 'image')->disk(env('STORAGE_NAME')),

I fixed similar problem on controller - Storage put method has 2nd parameter "options", so I set it to 'public' and it works. Nova File/Image class doesn't have that option (or I just can't find it). Has anyone similar problem?

0 likes
3 replies
devfrey's avatar
devfrey
Best Answer
Level 11

Make sure you have the 'visibility' => 'public' option added to your filesystems.php under the correct driver. That should be all you need to do.

2 likes
deladels's avatar

@devfrey Thanks very much. I needed this today. Still works flawlessly on Laravel 6.

1 like

Please or to participate in this conversation.