riccardogaleazzi
riccardogaleazzi
FFilament
Created by riccardogaleazzi on 7/27/2023 in #❓┊help
Nested relation
@pboivin thanks but I already was in the Relation Manager resource. Luckily I managed to solve in this way:
Repeater::make('b2bOrderItems')
->relationship('b2bOrderItems')
->schema([
TextInput::make('sku'),
Group::make([
TextInput::make('description')
])->relationship('product')
->columnSpan(1)
Repeater::make('b2bOrderItems')
->relationship('b2bOrderItems')
->schema([
TextInput::make('sku'),
Group::make([
TextInput::make('description')
])->relationship('product')
->columnSpan(1)
The Group class allows to specify a relationship and really important it has the columnSpan method to align the Group next to the other fields, otherwise it is full width and it breaks anything!
6 replies