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
current code
dumping your code isnt helping anyone to help you, what is the actual issue your are facing: https://discord.com/channels/883083792112300104/1167015843020943390
bro im asking for suggesstion how to do such thing?
I dont know what you are trying to build..
you want to see the relations on the resource index?
yeah something like that
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 ?
so what should i do?
currently its like this?
https://www.loom.com/share/920520e8309b48b08666eec04c173475?sid=c91890c4-5145-4822-8087-392ac1c8db66
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
so now should i create a view page?
is it possible that a resource navigation label doesnt show in sidebar
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.
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."
Do you mean like a visual example, or a code example?