Can't `$this->form->fill()` images in custom Livewire Page while using Repeater
in my
i'm trying to fill
app_intro_image
's in app_screens
output data that is being filled.
Here is what my data state looks like after page is rendered on browser.
http://myapp.test/storage/16/appify-logo-white.svg
perfectly accesible from browser.
Context i have been experiencing same issue for a year now here is - reproducible repo
https://github.com/RizwanNaasir/filament-form-issue
and related issue that was closed without any further solution.
- https://github.com/filamentphp/filament/issues/5441GitHub
GitHub - RizwanNaasir/filament-form-issue
Contribute to RizwanNaasir/filament-form-issue development by creating an account on GitHub.
GitHub
Fileupload Component of Filament/Forms cannot be filled with images...
Package filament/forms Package Version v2.16 Laravel Version v9.46 Livewire Version v2.10.8 PHP Version PHP 8.1 Problem description This Repo contains minimal reproduction of issue in Filament/Form...
Solution:Jump to solution
I was missing call to my actual ->model() instance on
SpatieMediaLibraryFileUpload
componet.
e.g
```php...5 Replies
your reproduction repo is using
"filament/forms": "^2.16"
, but you tagged v3
becuse this issue still uccoring to this date since in v2 and now in v3.
@KA did you ever encounter this issue while using form builder this way ?
repeater accept array of arrays
and the key has to be string you can use
Str::Uuid()
@Lara Zeus after rendered the
public array $data
does contain auto generated uuid
for the keys of repeater childeren.
Solution
I was missing call to my actual ->model() instance on
SpatieMediaLibraryFileUpload
componet.
e.g