emil
emil
FFilament
Created by emil on 5/19/2024 in #❓┊help
Soft-deleted relations
Well, it behaves strange. campaign.user.email campaign = soft deleted user = not soft deleted Only works when both of these relations are withTrashed. 'campaign' => fn ($query) => $query->withTrashed(), 'campaign.user' => fn ($query) => $query->withTrashed(), Maybe that's expected behaviour? I'd imagine the second one alone should be enough
7 replies
FFilament
Created by emil on 5/19/2024 in #❓┊help
Soft-deleted relations
Solution: ->modifyQueryUsing(function ($query) { return $query->with([ 'campaign' => fn ($query) => $query->withTrashed(), 'campaign.user' => fn ($query) => $query->withTrashed(), ]); })
7 replies
FFilament
Created by emil on 5/19/2024 in #❓┊help
Soft-deleted relations
Appears nested relations are not passed through modifyQueryUsing? Appears to be a bug, no? TextColumn::make('campaign.user.email') ->modifyQueryUsing(function ($query) { return $query->with([ 'campaign' => function ($query) { $query->withTrashed()->with('user'); }, ]); })
7 replies
FFilament
Created by emil on 5/19/2024 in #❓┊help
Soft-deleted relations
Solved: ->modifyQueryUsing(function ($query) { return $query->with(['campaign' => function ($query) { $query->withTrashed()->with(['user']); }]); })
4 replies
FFilament
Created by emil on 4/3/2024 in #❓┊help
Listener on *resource* (not page)
Jeeeeez. Thank you. There goes 2 days of mental breakdowns. Thank you!
5 replies
FFilament
Created by emil on 3/30/2024 in #❓┊help
formEvents gone in 3.0?
Not getting it to work so I assume the foremost unfortunately. Perhaps another approach is recommended with Filament 3? I have a JS variable in a form components custom view that I want to "send to" the main Filament component
7 replies
FFilament
Created by emil on 3/30/2024 in #❓┊help
formEvents gone in 3.0?
7 replies
FFilament
Created by emil on 3/20/2024 in #❓┊help
Just bought Filament's Minimal Theme - with the hopes it would be "stable" for current Filament.
Ah, thought this was OK as it's sold by Filament. Yes, followed them to the t. All things from their screenshots works - but Filament 3 stuff like wizards appear broken
7 replies