F
Filament3w ago
pjb

Full-page ManageRelatedRecords Form? (Nova equivalent)

I'm currently migrating an app from Nova to Filament and trying to reproduce Nova's workflow for creating related (ex. hasMany) model records.
In Nova, clicking the "Create <related-model>" button or Edit icon in its version of a Relation Manager table links you to the full create or edit pages of the related resource resource with the relation context in the URL query string: ex.
https://my-nova-app.com/app/resources/<related-model>/new?relationshipType=hasMany&viaRelationship=<relationship-name>&viaResource=<parent-model>&viaResourceId=<parent-resource-key>
https://my-nova-app.com/app/resources/<related-model>/new?relationshipType=hasMany&viaRelationship=<relationship-name>&viaResource=<parent-model>&viaResourceId=<parent-resource-key>
In Filament, creating/editing related model records seems to be done exclusively through form modals, whether its from a ManageRelatedRecords page or just straight from the Relation Manager. Is there a way to present the related model form in a full-page format rather than a modal, as to mimic the Nova workflow?
4 Replies
Grégoire
Grégoire7d ago
I have the exact same question, @pjb. Have you found a good solution?
pjb
pjbOP7d ago
@Grégoire I settled on an approach similar to Nova's. My relation manager's actions pass some extra properties in the URL
Grégoire
Grégoire7d ago
Thanks for your answer!
Antea
Antea6d ago
->modalWidth(MaxWidth::Screen) perhaps

Did you find this page helpful?