AntV
AntV
FFilament
Created by AntV on 3/29/2025 in #❓┊help
`Typed property Filament...Component::$container must not be accessed before init` from custom field
So apparently the solution was to create a public function getChildComponents(): array and put the array of components in there, changing the blade component to:
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
<div x-data wire:key="filters-{{ $getCategoryId() }}">
{{ $getChildComponentContainer() }}
</div>
</x-dynamic-component>
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
<div x-data wire:key="filters-{{ $getCategoryId() }}">
{{ $getChildComponentContainer() }}
</div>
</x-dynamic-component>
I must note that I could not find anything related to this in the documentation
2 replies
FFilament
Created by AntV on 5/28/2023 in #❓┊help
KeyValue field breaks json into array of characters
How should it be cast? I have it set as a json in the DB and for everything else it works as intended
14 replies
FFilament
Created by ironheartkh on 5/28/2023 in #❓┊help
unique() is not working in edit ?
->unique(ignoreRecord: true)
6 replies
FFilament
Created by AntV on 5/28/2023 in #❓┊help
KeyValue field breaks json into array of characters
The weird thing is that creating a new entry works fine. Only the reading is somehow broken
14 replies