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
Could you provide a bit more context?
Where are you running this line?
What are you expecting to happen?
@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;
}),
Please or to participate in this conversation.