© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
emil

Soft-deleted relations

Found other posts before but no answers.
TextColumn::make('campaign.user.name')

What is the campaign is soft deleted?

modifyQueryUsing doesn't seem to do anything (checked with query debugger)

->modifyQueryUsing(function ($query) {
return $query->with(['campaign' => fn($query) => $query->withTrashed()]);
})
Solution
Solved:


->modifyQueryUsing(function ($query) {
return $query->with(['campaign' => function ($query) {
$query->withTrashed()->with(['user']);
}]);
})
Jump to solution
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-deleted relations
FilamentFFilament / ❓┊help
2y ago
Select list: How to handle soft deleted (trashed) relations?
FilamentFFilament / ❓┊help
3y ago