© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
23 replies
gigiloouu

save filter data in variable

in my code i want to save choosen filter in my variable like i have $status variable and i want to save there this
    protected function getFilters(): ?array
    {
        return [
            null => 'Show All', 
            0 => 'In Progress',
            1 => 'Order',
            2 => 'Completed',
            3 => 'Cancelled',
        ];
    }
    protected function getFilters(): ?array
    {
        return [
            null => 'Show All', 
            0 => 'In Progress',
            1 => 'Order',
            2 => 'Completed',
            3 => 'Cancelled',
        ];
    }
if i choose in Progress i want to save 0 in $status
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Save values of Select in variable
FilamentFFilament / ❓┊help
3y ago
Recovering filter data
FilamentFFilament / ❓┊help
3y ago
Save builder data in HasMany Relationship
FilamentFFilament / ❓┊help
11mo ago
save repeater data in pivot table
FilamentFFilament / ❓┊help
2y ago