mokhosh
mokhosh
FFilament
Created by mokhosh on 4/19/2024 in #❓┊help
Two fieldsets for the same relationship on two wizard steps not working
I have a wizard that saves some data on User, and some data on Profile which belongs to a user. The fields that are related to Profile are put on two different steps of a Wizard inside a Fieldset with relationship method pointing to the HasOne profile relationship on user model. It works fine if I only have one fieldset linked to this relationship, but breaks when I have two. Any ideas how I can fix this collision?
10 replies
FFilament
Created by mokhosh on 3/14/2024 in #❓┊help
Rich editor not working inside Livewire component
I'm simply following the instructions on this page: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component But MarkdownEditor and RichEditor don't work on my Livewire components. What do you think I'm missing?
30 replies
FFilament
Created by mokhosh on 12/11/2023 in #❓┊help
any way to sort infolist repeatable items by a specific column?
can you modify the query used by infolist repeatable? or maybe modify the state and use collection sort? or a specific method on repeatable? tried this and it doesn't work btw:
->getStateUsing(fn ($record) => $record->states()->latest()->get())
->getStateUsing(fn ($record) => $record->states()->latest()->get())
2 replies
FFilament
Created by mokhosh on 7/2/2023 in #❓┊help
Using repeater to fill an indexed array format
I have a text column which contains a simple indexed array list of names:
[
'laravel',
'django',
'rails',
]
[
'laravel',
'django',
'rails',
]
and I'm using a collection cast on the model to serialize and deserialize it. but when I use the Repeater component it doesn't load the data of existing models, and it only shows empty fields. if I try to create new items, the output looks like this:
[
{'name':'laravel'},
{'name':'django'},
{'name':'rails'},
]
[
{'name':'laravel'},
{'name':'django'},
{'name':'rails'},
]
16 replies