Save relationship first before creating model
So I need to save the relationship first then create a model and sync it
5 Replies
use the beforeCreate hook
alternatively you can also use the handleRecordCreation method
@Hussain4real is there a reason why I cant get the other inputs?
what do you mean?
dd
$data
to see
if it's in beforeCreat()
hook, dd $this->data