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

Ajvanho's avatar
Level 14

This image could not be found.

I cant display the image:

Image::make('photo')->disk('public'),

public link: public/storage
storage: storage/app/public/001.jpg

0 likes
2 replies
anthonyclark's avatar

Could you provide a bit more context? Where are you running this line? What are you expecting to happen?

1 like
Maria30's avatar

@ajvanho At NOVA you set the disk you want. But you have to configure your settings at config/filesystem.php And run php artisan storage:link

Check also this link https://nova.laravel.com/docs/3.0/resources/file-fields.html#customizing-previews

I believe if you use this snippet it will work fine

use Laravel\Nova\Fields\Image;
use Illuminate\Support\Facades\Storage;

Image::make('Photo')
    ->disk('public')
    ->preview(function ($value, $disk) {
        return $value
                    ? Storage::disk($disk)->url($value)
                    : null;
    }),
2 likes

Please or to participate in this conversation.