laravel associate many 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();