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
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
You can override the configureCreateAction() on the rm to return a ->url() instead of using a ->form()
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
ah, ok I will gave that a go first - thank you!
have you try it? is it working?
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.