emil
emil
FFilament
Created by emil on 11/20/2024 in #❓┊help
Injecting $record and using ->when
$record becomes an instance of TextColumn instead of Model when using the ->when condition. Is this expected behaviour? TextColumn::make('state') ->when(fn($record) => dd($record))
17 replies
FFilament
Created by emil on 10/18/2024 in #❓┊help
Table Split seems broken?
No description
3 replies
FFilament
Created by emil on 5/19/2024 in #❓┊help
Soft-deleted relations
Found other posts before but no answers. Works when campaign is soft-deleted: TextColumn::make('campaign.user.name') However, this doesn't work: ->url(fn ($record) => UserResource::getUrl('edit', [$record->campaign->user])) modifyQueryUsing is eager loading it - however that doesn't seem to affect $record. Query being run: select * from campaigns where campaigns.id in (5) and campaigns.deleted_at is null Modify query on the table: ->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
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()]); })
4 replies
FFilament
Created by emil on 4/14/2024 in #❓┊help
ImportAction sample data broken in latest release?
No description
2 replies
FFilament
Created by emil on 4/3/2024 in #❓┊help
Listener on *resource* (not page)
I know listeners on Pages are easy enough - but I can't get them to work on a resource. Essentially having JS (custom view) trigger something in the parent Resource that it is called from.
5 replies
FFilament
Created by emil on 3/30/2024 in #❓┊help
formEvents gone in 3.0?
Did formevents disappear with Filament 3.0? The ability from pure JS send events to Filament component.
7 replies
FFilament
Created by emil on 3/25/2024 in #❓┊help
Register Page in navigation
I feel utterly stupid.. I have a page (EditRecord) in my resource, and want this page to be displayed in the main navigation. Whatever I try - all from registering it as a Page in the provider, to sub navigation in the resource, it won't appear in the sidebar. What part of the docs am I missing?
2 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.
Followed the install instructions, cleared cache, rebuilt npm etc. Part of the app looks like the new theme, whereas other parts such as wizards appear broken. https://share.cleanshot.com/nQVV3zmd
7 replies
FFilament
Created by emil on 3/15/2024 in #❓┊help
Images of components
Is there any collection of images of Filament elements? The docs are great, but doesn't show how the elements appears visually, which would be great to be able to plan the page without having to test each element one by one.
5 replies