"Saving data to a BelongsTo relationship" nullable foreign key workaround

Regarding https://filamentphp.com/docs/3.x/forms/advanced#saving-data-to-a-belongsto-relationship Is there any way around this? I'd prefer not to make my foreign keys nullable. Could I create a custom Livewire component or page for creating a new resource? I could then handle the logic in there (create parent, attach relation).
1 Reply
Tieme
Tieme10mo ago
If there was a way around this than the documentation is not up to date, so i dont think that there is a way around this.
Want results from more Discord servers?
Add your server