Answers for "iqbal Laravel save record in two table in one line"

PHP
0

iqbal Laravel save record in two table in one line

$phone = Phone::find(1);
 
$user = User::find(10);
 
$phone->user()->associate($user)->save();
Posted by: Guest on January-08-2022

Code answers related to "iqbal Laravel save record in two table in one line"

Browse Popular Code Answers by Language