Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

miquelangeld's avatar

Filament custom field

I'm trying to create a custom field and I have problems rendering the data that I pass to the field. Thanks in advance !! My component:

This is the blade modified just for test:

<x-dynamic-component
    :component="$getFieldWrapperView()"
    :field="$field"
>
    <div x-data="{
        state: $wire.$entangle('{{ $getStatePath() }}'),
        options: {{ json_encode($getOptions()) }}
    }">
        <template x-for="(value, key) in options" :key="key">
            <p x-text="value"></p>
        </template>
    </div>
</x-dynamic-component>

And this is part of my resource:

When I select a job position, the data is correctly sent to the component—I can see it in the logs. However, the data never gets rendered in the Blade.

0 likes
0 replies

Please or to participate in this conversation.