© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
3 replies
kaster

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>
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Problem with $getId in filament-schema grid blade component
FilamentFFilament / ❓┊help
5mo ago
Custom grid structure in filament
FilamentFFilament / ❓┊help
2y ago
Using filament components in custom livewire component
FilamentFFilament / ❓┊help
3y ago
<x-filament::grid
FilamentFFilament / ❓┊help
8mo ago