Reference: How can I update an existing Eloquent relationship in Laravel 4?
$userinfo = \\Userinfo::find($id); \\User::find($id)->userinfo()->associate
Change hasOne to belongsTo. It will look like:
hasOne
belongsTo
class User extends Eloquent { public function userinfo() { return $this->belongsTo('Userinfo'); } } class Userinfo extends Eloquent { public function user() { return $this->belongsTo('User'); } }