IamAStar_1
How to add relationship form fields on custom pages
I’ve figured out the answer.
Instead of relationship, I added relationship name
example. make(‘user_contact.company’)
Inside save method,
$data = $this->form->getState();
auth()->user()->update($data);
auth()->user()->user_contact->update($userContact);
Exception handling and sending success notification is implemented in save()
3 replies