Adding a SelectFilter with relationship breaks table ordering
I think this is a standard filament question but I'm using the plugin filament-auditing https://filamentphp.com/plugins/auditing and have extended the
AuditsRelationManager
to add a users filter.
https://github.com/TappNetwork/filament-auditing/blob/main/src/RelationManagers/AuditsRelationManager.php
But not sure why when I add this filter I get
Column not found: 1054 Unknown column 'name' in 'field list' (Connection: mysql, SQL: selectname
,audits
.` from
auditsorder by
name` asc)
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Cheers but that didn't work. But I think you're right because the user is a polymorphic relationship is why the select doesn't work. I'm so used to it being a belongsTo.
I ended up doing it manually