TextColumn BelongsToMany
Hello,
I have a question regarding TextColumn and accessing attributes from a BelongsToMany relationship.
Consider the following case (I've simplified it to get to the point) :
So, I can do this in Filament:
But not this:
My solution :
Is there a more elegant solution? Especially since in the above case, I'm forced to eager load the routes, otherwise, I'm in an n+1 situation.
Any help? Thanks in advance!
0 Replies