Nested Relation Managers - use create page not modal

Salut. I need to build a fairly complex structure which will involve nested RMs. Can I override the 'New <record>' action on the nested RM table to open in a new create/edit page rather than in a modal - so that the nested RMs will show the related records table? Rough idea of relationship structure: Top Level Model -> hasMany 2nd level model -> hasMany 3rd Level Model *-> could haveMany 4th Level Model I'm converting an existing/legacy app - so I'm pretty restricted with the data structure TIA
6 Replies
Blackpig
Blackpig5mo ago
I'm looking for a quick win (I suspect I can manage this by making each of the RMs their own Resource and adding the next level down as an RM etc) - however, anyone used this plugin? https://filamentphp.com/plugins/guava-nested-resources
Filament
Nested Resources by Guava - Filament
Adds support for nested resources
awcodes
awcodes5mo ago
You can override the configureCreateAction() on the rm to return a ->url() instead of using a ->form()
awcodes
awcodes5mo ago
GitHub
filament/packages/panels/src/Resources/RelationManagers/RelationMan...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Blackpig
Blackpig5mo ago
ah, ok I will gave that a go first - thank you!
d.
d.4mo ago
have you try it? is it working?
Blackpig
Blackpig4mo ago
I used this plugin https://discord.com/channels/883083792112300104/1167940700130791574 - it's still in development/alpha release but if you're just looking for simple nesting it works fine.
Want results from more Discord servers?
Add your server
More Posts