F
Filament11mo ago
Lim

Save relationship first before creating model

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

Did you find this page helpful?