title: Laravel eloquent: Update A Model And its Relationships
body: <p>With an eloquent model you can update data simply by calling </p>
  
  <pre><code>$model-&gt;update( $data );
  </code></pre>
  
  <p>But unfortunately this does not <strong>update the relationships.</strong> </p>
  
  <p>If you want to update the relationships too you will need to assign each value manually and call <a href="http://laravel.com/docs/eloquent#insert-update-delete" rel="noreferrer">push()</a> then:</p>
  
  <pre><code>$model-&gt;name = $data['name'];
  $model-&gt;relationship-&gt;description = $data['relationship']['description'];
  $model-&gt;push();
  </code></pre>
  
  <p>Althrough this works it will become a mess if you have a lot of data to assign.</p>
  
  <p>I am looging for something like</p>
  
  <pre><code>$model-&gt;push( $data ); // this should assign the data to the model like update() does but also for the relations of $model
  </code></pre>
  
  <p>Can somebody please help me out? </p>