This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
uhynuu31347
Is possible to pass the model id to custom widget when creating a new record?
Here's a scenario:
I have a parent model and custom children widget that saves data to different table.
When creating a parent record the custom widget allows to add children to that record. On save I need the parent id for the children's parent_id column.
daftspunky
Using $this->relation()->withDeferred($this->sessionKey)->first()
may be what you're after.
1-2 of 2