Question about supported relationship syntax in Filament Forms

Quick question for anyone who knows. Does Filament support saving/creating relationships in a Form using syntax similar to this? Kind of like what you would see for Table columns..
Forms\Components\TextInput::make('account.name')->required(),
Forms\Components\TextInput::make('account.name')->required(),
I could have sworn that I remember using syntax like this and it would work..
2 Replies
bogus
bogus10mo ago
For me, it works in this way:
Forms\Components\Group::make()
->relationship('account')
->schema([
Forms\Components\TextInput::make('name')->required(),
]),
Forms\Components\Group::make()
->relationship('account')
->schema([
Forms\Components\TextInput::make('name')->required(),
]),
Andrew Wallo
Andrew WalloOP10mo ago
Yes it does work this way, but I don't want to have to make a group for every field considering that some fields don't belong to a relationship and some do, and I want my fields in a specific order.
Want results from more Discord servers?
Add your server