whitecube / nova-flexible-content

Flexible Content & Repeater Fields for Laravel Nova
MIT License
780 stars 229 forks source link

flexible content image delete #456

Open eno7x opened 1 year ago

eno7x commented 1 year ago

This is the error I get when I try to delete the image in the snapshot. Has anyone encountered this problem and found a solution, thanks in advance image

            Flexible::make('attributes')
                ->addLayout('Simple gallery section', 'gallery', [
                    Text::make('Title'),
                    Image::make('Image')
                        ->path('pages')
                        ->preview(function ($value, $disk) {
                            return $value ? Storage::disk($disk)->url($value) : null;
                        })->prunable(),

                ])