© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Zoltar

ManageRelatedRecords use getEloquentQuery() not working

Hello, i need to filter result in table in ManageRelatedRecord page

i'm trying to use:

    public static function getEloquentQuery(): Builder
    {
        return parent::getEloquentQuery()->where('is_active', true);
    }
    public static function getEloquentQuery(): Builder
    {
        return parent::getEloquentQuery()->where('is_active', true);
    }

but not working
any suggestions?
regards
Solution
use
modifyQueryUsing
modifyQueryUsing

https://filamentphp.com/docs/3.x/panels/resources/listing-records#customizing-the-table-eloquent-query
Listing records - Panel Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

ManageRelatedRecords (Sub)navigation label not working
FilamentFFilament / ❓┊help
15mo ago
table filters are not working when i customized getEloquentQuery()
FilamentFFilament / ❓┊help
17mo ago
spotlight ManageRelatedRecords
FilamentFFilament / ❓┊help
16mo ago
How to use table filters in getEloquentQuery?
FilamentFFilament / ❓┊help
2y ago