© 2026 Hedgehog Software, LLC

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

Attach / Detach with timestamps and soft deletes?

Hi! For a BelongstoMany relationship with a pivot table we use the RelationManager and the
Attach()
Attach()
and
Detach()
Detach()
action to add and delete a relation. However, on the pivot table we also have timestamp columns (created_at, updated_at and deleted_at). Is there a way to use soft_deletes and make these follow the Laravel timestamps convention? Thanks in advance!
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

Soft Detach and Soft Dissociate
FilamentFFilament / ❓┊help
2y ago
Trouble with Attach (Detach works)
FilamentFFilament / ❓┊help
17mo ago
restore soft deletes
FilamentFFilament / ❓┊help
3y ago