© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Rahman Ramsi

Is there a way to Group a table with morphToMany relationship?

I try create a group table with relationship on role like this :
$table
  ->groups([
      Group::make('roles.name'),
  ])
$table
  ->groups([
      Group::make('roles.name'),
  ])


It return error like this.
CleanShot_2023-09-04_at_15.07.47.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MorphToMany Select Relationship
FilamentFFilament / ❓┊help
16mo ago
Is there a way to group options on a select when using a relationship?
FilamentFFilament / ❓┊help
2y ago
Is there a way to set a default group direction in a table?
FilamentFFilament / ❓┊help
16mo ago
Is there any way to add an action button to table group?
FilamentFFilament / ❓┊help
2y ago