Sergey Yatsyshen
Help. How I can show in Forms\Components\FileUpload::make('image') field filed from other field
I use this code - but i cant show preview
Forms\Components\FileUpload::make('image')
->label('Зображення')
->image()
->directory('temp')
->disk('public')
->preserveFilenames()
->required(fn () => request()->routeIs('filament.admin.resources.services.create'))
->default(fn ($record) => $record?->image_paths['original'] ?? null)
->downloadable()
->openable()
,
But in columns list i can show it as->columns([
Tables\Columns\ImageColumn::make('image_paths.thumbnail')
->label('Зображення')
->circular()
->height(100),
Who can help me with this?2 replies