© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
8 replies
Tieme

Relationmanager in Livewire Infolist component

Hi All,

I'm trying to get a realtionmanager in a infolist livewire component.

Infolists\Components\Livewire::make(VaccinesRelationManager::class)
    ->key('vaccines-table')
    ->lazy(),
Infolists\Components\Livewire::make(VaccinesRelationManager::class)
    ->key('vaccines-table')
    ->lazy(),


When i do this i get following error.

Typed property Filament\Resources\RelationManagers\RelationManager::$ownerRecord must not be accessed before initialization
Typed property Filament\Resources\RelationManagers\RelationManager::$ownerRecord must not be accessed before initialization


Is there anyway to do this without defining it in the below function on the resource?
The reason i don't want to have it in below function is that the Infolist has tabs lay-out and need the table in one of the tabs.
I know i can make my own livewire component, but a relationmanager has all the functions that i need.

    public static function getRelations(): array
    {
        return [
        ];
    }
    public static function getRelations(): array
    {
        return [
        ];
    }


Thanks for you help.
Solution
Thanks for the reaction.

If anyone has the same question i found a solution by implementing the following plugin.
With that plugin you can add the relation manager into a infolist / form.

https://github.com/njxqlus/filament-relation-manager-component
GitHub
GitHub - njxqlus/filament-relation-manager-component: Use Filament ...
Use Filament Relation Manager Everywhere! Contribute to njxqlus/filament-relation-manager-component development by creating an account on GitHub.
GitHub - njxqlus/filament-relation-manager-component: Use Filament ...
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Using infolist actions inside livewire component
FilamentFFilament / ❓┊help
16mo ago
Expand infolist to full width in livewire component
FilamentFFilament / ❓┊help
12mo ago
Issue with livewire component (a table) in Infolist
FilamentFFilament / ❓┊help
17mo ago
use RelationManager in InfoList modal?
FilamentFFilament / ❓┊help
3y ago