title: Saving related records in laravel
body: <p>I have users, and users belong to a dealership.  </p>
  
  <p>Upon user registration, I'm trying to save a new user, and a new dealership. </p>
  
  <p>User database has a <code>dealership_id</code> column, which I want to be populated with the ID of the newly created dealership. </p>
  
  <p>This is my current code in the <code>UserController</code> store method.</p>
  
  <pre><code>public function store()
  {
      $user = new User();
      $user-&gt;email = Input::get('email');
      $user-&gt;password = Input::get('password');
  
  
      $dealership = new Dealership();
      $dealership-&gt;name = Input::get('dealership_name');
  
      $user-&gt;push();
      return "User Saved";
  
  }
  </code></pre>
  
  <p>Trying to use <code>$user-&gt;push();</code> User data gets updated, but dealership is not created or updated. </p>