Hi all
How to add new record to relation table with relation active record ?
for example
$userModel->with(‘email’)->title = ‘Email title’;
$userModel->with(‘email’)->message = ‘Message’;
$userModel->with(‘email’)->save();
Hi all
How to add new record to relation table with relation active record ?
for example
$userModel->with(‘email’)->title = ‘Email title’;
$userModel->with(‘email’)->message = ‘Message’;
$userModel->with(‘email’)->save();