© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Dorin

Manual filter after query in table

Is it possible to perform a manual query after loading the models from the db?
Something like this:
foreach ($table->getAllRecords() as $record) {
    if ($record->customFunctionOrFilter()){
        unset($record);
    }
}

return $table
          ->columns([...])
foreach ($table->getAllRecords() as $record) {
    if ($record->customFunctionOrFilter()){
        unset($record);
    }
}

return $table
          ->columns([...])


I know this hasn't the best performance.
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

TablesRenderHook after table filter / toggle columns
FilamentFFilament / ❓┊help
6mo ago
Filter not apply on table query
FilamentFFilament / ❓┊help
6mo ago
withoutGlobalScope in Table filter
FilamentFFilament / ❓┊help
11mo ago
Subquery in table filter
FilamentFFilament / ❓┊help
2y ago