© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
2y ago
•
6 replies
emil
Soft-deleted relations
Found other posts before but no answers
.
Works when campaign is soft
-deleted
:
T
e
x
t
C
o
l
u
m
n
:
:make
(
'campaign
.user
.name
'
)
However
, this doesn
't work
:
-
>url
(fn
(
$record
)
=
>
U
s
e
r
R
e
s
o
u
r
c
e
:
:getUrl
(
'edit
'
,
[
$record
-
>campaign
-
>user
]
)
)
modifyQueryUsing is eager loading it
- however that doesn
't seem to affect
$record
.
Query being run
:
select
* from
campaigns
campaigns
where
campaigns
campaigns
.
id
id
in
(5
) and
campaigns
campaigns
.
deleted_at
deleted_at
is null
Modify query on the table
:
-
>modifyQueryUsing
(function
(
$query
)
{
return
$query
-
>with
(
[
'campaign
'
=
> function
(
$query
)
{
$query
-
>withTrashed
(
)
-
>with
(
[
'user
'
]
)
;
}
]
)
;
}
)
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Soft-deleted relations
F
Filament / ❓┊help
2y ago
Select list: How to handle soft deleted (trashed) relations?
F
Filament / ❓┊help
3y ago