© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
AlexAnder

Custom AttachAction

Can someone can help?
I have peoples connected thru polymorphic relation MorphToMany.
When I attach person to person, in db I get
[
  'person_id' => 1,
  'personable_id' => 2,
  'personable_type' => 'App\Models\Person',
];
[
  'person_id' => 1,
  'personable_id' => 2,
  'personable_type' => 'App\Models\Person',
];

The questions is:
Ho to customize AttachAction to get records in db in both directions, so on both persons I get relation with each other?
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

Relationship Manager AttachAction custom form
FilamentFFilament / ❓┊help
2y ago
AttachAction custom select option labels
FilamentFFilament / ❓┊help
3y ago
AttachAction not working for custom select
FilamentFFilament / ❓┊help
3y ago
Costumize AttachAction
FilamentFFilament / ❓┊help
2y ago