laravel eloquent create and associate code example
Example: laravel eloquent associate
$account = App\Account::find(10);
$user->account()->associate($account);
$user->save();
$account = App\Account::find(10);
$user->account()->associate($account);
$user->save();