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(),


When i do this i get following error.

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 [
        ];
    }


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
Use Filament Relation Manager Everywhere! Contribute to njxqlus/filament-relation-manager-component development by creating an account on GitHub.
Was this page helpful?