© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
25 replies
AlexAnder

Repeater in repeater eager load

It's possible to eager load nested relationship, like Question hasMany Answers and Answer HasMany Tags and all load in editView like :
// .......
Repeater::make('answers')
    ->relationship()
    ->schema([
        Repeater::make('tags')
            ->relationship()
            ->schema([
                TextInput::make('name'),
            ])
// ......
// .......
Repeater::make('answers')
    ->relationship()
    ->schema([
        Repeater::make('tags')
            ->relationship()
            ->schema([
                TextInput::make('name'),
            ])
// ......

If I modify
return parent::getEloquentQuery()->with('answers.tags');
return parent::getEloquentQuery()->with('answers.tags');

its loads answers and tags in eagerload and still for each answers query's tags and total is 309 selects..
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

Eager load issue
FilamentFFilament / ❓┊help
2y ago
how to eager load in relationship manager
FilamentFFilament / ❓┊help
3y ago
How to eager load in Relation Manager?
FilamentFFilament / ❓┊help
3y ago
Eager load or lazy load on modals?
FilamentFFilament / ❓┊help
2y ago