title: Argument 1 passed to Illuminate\Database\Eloquent\Relations\HasOneOrMany::update() must be of the type array, object given
body: <p>I want to update a data in the database
  i have controller</p>
  
  <pre><code>public function update(Identity $identity, Request $request)
  {
    $data = new Identity();
    $data-&gt;date  = $request['date'];
    $data-&gt;code   = $request['code'];
    $data-&gt;name   = $request['name'];
    $request-&gt;user()-&gt;identity()-&gt;update($data);
    Session::flash('flash_message', 'Update success.');
    return redirect('identity.index');
  }
  </code></pre>
  
  <p>Model Identity</p>
  
  <pre><code>public function user()
  {
  // Each data is owned by only one user
  return $this-&gt;belongsTo('App\User');
  }
  </code></pre>
  
  <p>Model User</p>
  
  <pre><code>public function identity()
  {
  // Each user will have a lot of data
  return $this-&gt;hasMany('App\Identity');
  }
  </code></pre>
  
  <p>And i found an error: Argument 1 passed to Illuminate\Database\Eloquent\Relations\HasOneOrMany::update() must be of the type array, object given.</p>