FilamentF
Filament10mo ago
Mombei

Relation Manager in Tab component of parent Resource

What I am trying to do: I want my "Accounts" resource to have tabbed Relation Managers for its Many-to-Many relationships. The reason I want the Relation Manager inside a Tab component on the parent resource is because I need the editable "name" form field to be displayed outside of the tabs, on top, so it's always visible.

What I did: I have tried declaring
public function hasCombinedRelationManagerTabsWithContent(): bool 
{
    return true;
}

in the EditAccount.php of the Resource pages

My issue/the error: the above solution puts the entire content of my EditForm in its own tab, which is different from my requirement.

Do I need to code a custom view/component or use some Livewire workarounds? This is my first project in Laravel (but not my first in php) and I've been following the documentation
Was this page helpful?