hey i have an ServerResource that have a relation with subServers and in my Server index table i wan

hey i have an ServerResource that have a relation with subServers and in my Server index table i want to show a btn and that btn would display that server sub servers and usual crud there ik i could use Relation manager but this only shows that server sub servers when im editing a server or viewing how i could show it like a resource type but doesnt want like index?
15 Replies
Sameed Editz
Sameed EditzOP4w ago
current code
Jordy
Jordy4w ago
dumping your code isnt helping anyone to help you, what is the actual issue your are facing: https://discord.com/channels/883083792112300104/1167015843020943390
Sameed Editz
Sameed EditzOP4w ago
bro im asking for suggesstion how to do such thing?
Jordy
Jordy4w ago
I dont know what you are trying to build.. you want to see the relations on the resource index?
Sameed Editz
Sameed EditzOP4w ago
yeah something like that
Jordy
Jordy4w ago
this is still behind a click (action) so why not just add it as a relation manager or like the demo: https://demo.filamentphp.com/blog/posts/1 ?
Jordy
Jordy4w ago
if you like the structure of the demo, you can check out the source code https://github.com/filamentphp/demo you could add an action with an url that directly links to the tab where you manage sub servers
Sameed Editz
Sameed EditzOP4w ago
so now should i create a view page? is it possible that a resource navigation label doesnt show in sidebar
Matthew
Matthew4w ago
I usually create a slideover infolist, or sometimes widget table with all my related model data. You can have infolist with specific actions etc. It would be good if out the box you couyld have two tables with a parent model and the child model on the second table on parent row selection. But you can't.
Sameed Editz
Sameed EditzOP3w ago
bro can u show me example what u meant by this "I usually create a slideover infolist, or sometimes widget table with all my related model data."
Matthew
Matthew3w ago
Do you mean like a visual example, or a code example?

Did you find this page helpful?