How to create a relation manager linked to a route -> /forms/formId/responses

im using the admin panel i have a forms table. users can answer forms. therefore i have another table for storing the responses per each form. at the moment, when i go to the edit form of a form, i see a relation manager i created - a table containing the form responses. i used the command php artisan make:filament-relation-manager to do so but now, i want to extract the table into another separate view & route -> /forms/formId/responses what is the aproach to take now to achieve it?? i ask cuz im using the admin panel and im not sure which is the correct way. in other projects i have the forms & tables packages installed individually, so there i just create forms & tables, but in this project im using the admin panel for first time yes, i followed the fantastic guide about getting started with the panels, but idk how to do that (: https://filamentphp.com/docs/3.x/panels/getting-started
3 Replies
ModestasV
ModestasV2y ago
What you want here is nested resources. These are not supported by Filament out of the box, but I did write a tutorial on how to make it work: https://laraveldaily.com/post/filament-v3-nested-resources-trait-pages This requires a bit of setup, as you have to trick Filament in some cases, but it seems to work without too many issues (at least we did not hear that something is broken)
ericmp
ericmpOP2y ago
i will follow it, thanks!!!!
ChesterS
ChesterS2y ago
There is also this plugin https://filamentphp.com/plugins/guava-nested-resources Haven't used it but looks good

Did you find this page helpful?