emil
emil
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
That is good enough for me. Thanks a bunch Dennis - much better.
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
No description
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
That's clever, I can fall back to the enums functions if it is not supposed to be overwritten by something else.
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
No description
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
The ugly workaround is to define everything in the column instead of enum, like the image below.
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
No description
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
No description
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
My bad - I probably explain poorly. Perhaps images should help? But if when does not support injection and this is intended behaviour it is what it is
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
As there's no way to get the "parent" record from within the Enum (I assume), using when and then overriding Enum values is the only thing I can think of.
17 replies
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
Apply certain styling (say color) based on the $record and using Enum at the same time. I know I can inject $record in ->color - however the state column is an Enum and has the colors defined there. Just want to override it based on record conditions
17 replies
FFilament
Created by emil on 10/18/2024 in #❓┊help
Table Split seems broken?
The generated HTML is in correct order, so may be a styling issue?
3 replies
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