Use a resource in the Select::relationship() method

Hi all. It is possible to use a complete resource as relation of type as BelongsTo, BelongsToMany etc. instead of a Model's relation name??
2 Replies
GHosT
GHosTOP2y ago
I don't find this in Filament documentation or Google. How to reuse a resource's logic?? No one can help?? Sadly😕
DrByte
DrByte2y ago
Perhaps you can explain more detail about what you're trying to accomplish and why. As well as what you've tried that hasn't worked, and what happened when you tried those things. Code samples are also helpful. Those kinds of things will help get answers. Without an idea of what you're really trying to do and why, it's hard to visualize. And, if you supply the information up-front, we don't have to ask you the usual questions: what, why, code, etc.

Did you find this page helpful?