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.
May 18, 2019
3
Level 1
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?
Level 11
2 likes
Please or to participate in this conversation.