#error: Array to string conversion

9 messages · Page 1 of 1 (latest)

raven anchor
#

i am getting the error 'Array to string conversion' in this code:

Forms\Components\FileUpload::make('image')
                                            ->columnSpan('full')
                                            ->image()
                                            ->imageEditor()
                                            ->panelLayout('grid')
                                            ->multiple()
                                            ->directory('brands')
                                            ->maxFiles(5)
                                            ->reorderable()
                                            ->preserveFilenames(),

how do i fix this???

tawny folioBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

warm hill
raven anchor
#

where do i place the code?

#

protected $casts = [
'images' => 'array',
];

#

this code?

warm hill
raven anchor
#

no iam using 10. but somehow the image is not being saved now

warm hill