Replies: 1 comment 1 reply
-
|
It's forced into an array to keep the data normalized and to mitigate a breaking change between v1 and v2. However, current release is v3 and work on v4 has started. You can also just use the Arr helper from laravel to not have to use the splice. Personally I recommend doing all Curator media as a relationship. It just makes it all cleaner and you won't have to worry about this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My case
I have this form with repeater, and each row shoud contain only one image

But on frontend i still have array (of one item).
Also, since the keys of the array are uuid, I need to do a splice to get the first element
default
my way
If there is already a way to do this and I'm did this for nothing (I'm still using filament v2), then show me because I haven't found it.
awcodes\filament-curator\src\Components\Forms\CuratorPicker.php

awcodes\filament-curator\resources\views\components\forms\picker.blade.php

It's a quick and not optimal solution, so I don't send a pull request, if it's not ready yet, I'll make it better for v3 later
version: ^2.7
Beta Was this translation helpful? Give feedback.
All reactions