© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•4mo ago•
8 replies
Calden

Repeater ->relationship() inside multiple Group ->relationship() in a form issue

Hi! I’m having an issue with relationships in my form.
I have a resource with a form based on my Inscription model.

In this model, I have one student belongTo(Student::class) relationship.

In my Student model, I have two relationships:

AAAs → hasMany(AAA::class)

BBBs → hasMany(BBB::class)

In my form, I have fields like this:

/* NOT OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...
/* NOT OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...


and later:

/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("BBBs")
            ->relationship()
            ...
/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("BBBs")
            ->relationship()
            ...


The BBBs repeater displays its data correctly, but the AAAs repeater shows nothing.
However, when I move the AAAs repeater into the same Group as the BBBs one, it works:

/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...
        Repeater::make("BBBs")
            ->relationship()
            ...
/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...
        Repeater::make("BBBs")
            ->relationship()
            ...


I don’t understand why I can’t have them in separate groups.

if i move AAAs repeater Group after BBBs repeater Group, AAAs is working but BBBs dont anymore ...

/* NOT OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("BBBs")
            ->relationship()
            ...
            
/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...
/* NOT OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("BBBs")
            ->relationship()
            ...
            
/* OK */
Group::make()
    ->relationship("student")
    ->schema([
        Repeater::make("AAAs")
            ->relationship()
            ...


If anyone has an idea...
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

Repeater inside a relationship manager action
FilamentFFilament / ❓┊help
3y ago
Repeater with relationship and group by
FilamentFFilament / ❓┊help
3y ago
Slow select relationship in a relationship repeater
FilamentFFilament / ❓┊help
2y ago
Get form state of 'parent' form inside a relationship
FilamentFFilament / ❓┊help
11mo ago