cpbret
cpbret
FFilament
Created by cpbret on 5/10/2024 in #❓┊help
Distinct Table Count
Adding distinct() makes it to the count query, but the column does not. Is there a different way? TextColumn::make('responses_count')->counts([ 'responses' => fn ($query) => $query->distinct('request_id') ]) ->label('Responses') SELECT DISTINCT count(*) FROM responses WHERE churches.id = responses.church_id and responses.TYPE = 1) AS responses_count FROM churches
4 replies
FFilament
Created by cpbret on 10/10/2023 in #❓┊help
Create Another in a Form Action
The button shows a modal, shows the Create Another button, but calling ->halt prevents the parent data from updating. Hitting Create updates my component correctly. I cannot find a way to do this.
8 replies
FFilament
Created by cpbret on 10/6/2023 in #❓┊help
Section Header Button
Has anyone been able to add an action button in the top right of a section? It looks like there is a spot for headerEnd.. but maybe it isn't currently in use? Open to getting creative as long as it works.
3 replies
FFilament
Created by cpbret on 8/11/2023 in #❓┊help
Always use the mobile Menu
What'd be the best way to use the mobile menu at all times? The goal is a slideover, that defaults closed on page refresh. Thanks
14 replies
FFilament
Created by cpbret on 8/2/2023 in #❓┊help
Livewire component autodiscovery
2 replies
FFilament
Created by cpbret on 7/19/2023 in #❓┊help
getTableRecordUrlUsing and shouldOpenInNewTab = true?
Is there a way to open a table row click in a new tab similar to a ViewAction on the row?
7 replies
FFilament
Created by cpbret on 6/1/2023 in #❓┊help
Table Builder - First custom row not reloading when filters update
I'm using table builder to show custom html rows that contain a single livewire component each. On page load, everything loads fine. On pagination or refreshing filters, all rows EXCEPT the first row update and show fine. It doesn't look to be data related.. because skipping the first item in the query causes the previously second item to get stuck in a loading state. I'm using wire:key="$getRecord()->id", and it seems to be working because everything else reloads fine. It almost feels like rows > index 0 are refreshed differently. I'm having a hard time locating the responsible code in the Filament repo. Thanks
1 replies