Level 4
Did you set up the form model, so filament can handle the relationship ?
This may help: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component#setting-a-form-model
Summer Sale! All accounts are 50% off this week.
I’m trying to make an action modal for HasMany relationship.
When I debug this code:
$this->form([
Grid::make()
->relationship('user')
->schema([
Grid::make()
->schema([
Repeater::make('userDocuments')
->relationship('userDocuments')
->hiddenLabel()
->schema(
UserDocumentForm::getForm()
)
->defaultItems(1),
])
->columns(1),
]),
]);
But the Repeater form is not showing the records of the UserDocument collection, even though the records exist.
Thank you very much for your help.
Please or to participate in this conversation.