Problem with $getId in filament-schema grid component

I’m currently upgrading a custom plugin from Filament v3 → v4, and I ran into a problem when updating the Blade views. In v3, the custom component for Infolists used <x-filament::grid>, but since that no longer exists in v4 (as far as I know), I replaced it with <x-filament-schemas::grid>. After that change, I started getting this error inside the custom RepeatableEntry view: ErrorException Undefined variable $getId I don't know why its happening but the issue seems related to the <x-filament-schemas::grid> component, whenever I remove it, the layout of the repeatable component works. This is a simplified code snippet:
<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
<div
{{
$attributes->merge([
'id' => $getId(),
])
}}
>
<x-filament-schemas::grid>
...
</x-filament-schemas::grid>
</div>
</x-dynamic-component>
<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
<div
{{
$attributes->merge([
'id' => $getId(),
])
}}
>
<x-filament-schemas::grid>
...
</x-filament-schemas::grid>
</div>
</x-dynamic-component>
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?