title: two foreign keys, how to map with laravel eloquent
body: <p>I have two tables in MySQL, where the first one is called users and the second one is called games. The table structure is as follows.</p>
  
  <p><strong>users</strong></p>
  
  <ul>
  <li>id (primary)</li>
  <li>email</li>
  <li>password</li>
  <li>real_name</li>
  </ul>
  
  <p><strong>games</strong></p>
  
  <ul>
  <li>id (Primary)</li>
  <li>user_one_id (foreign)</li>
  <li>user_one_score</li>
  <li>user_two_id (foreign)</li>
  <li>user_two_score</li>
  </ul>
  
  <p>My games table is holding two foreign relations to two users.</p>
  
  <p>My question is how do I make the model relations for this table structure?? - According to <a href="http://laravel.com/docs/eloquent#relationships">the laravel documentation</a>, I should make a function inside the model and bind it with its relations</p>
  
  <p>for instance</p>
  
  <pre><code>public function users()
  {
      $this-&gt;belongsTo('game');
  }
  </code></pre>
  
  <p>however I can't seem to find anything in the documentation telling me how to deal with two foreign keys. like in my table structure above.</p>
  
  <p>I hope you can help me along the way here.</p>
  
  <p>Thank you</p>