title: Laravel eager loading not working?
body: <p>Airports Table:</p>
  
  <pre><code>Schema::create('airports', function(Blueprint $table)
          {
              $table-&gt;increments('id');
              $table-&gt;string('code');
              $table-&gt;string('name');
              $table-&gt;string('city');
              $table-&gt;timestamps();
          });
  </code></pre>
  
  <p>Flights Table:</p>
  
  <pre><code>Schema::create('flights', function(Blueprint $table)
          {
              $table-&gt;increments('id');
              $table-&gt;integer('number');
              $table-&gt;integer('origin')-&gt;unsigned();
              $table-&gt;foreign('origin')-&gt;references('id')-&gt;on('airports');
              $table-&gt;integer('destination')-&gt;unsigned();
              $table-&gt;foreign('destination')-&gt;references('id')-&gt;on('airports');
              $table-&gt;integer('price');
              $table-&gt;timestamps();
          });
  </code></pre>
  
  <p>Flight Model:</p>
  
  <pre><code>&lt;?php
  
  class Flight extends \Eloquent {
      protected $fillable = ['number', 'origin', 'destination'];
  
      public function origin(){
          return $this-&gt;belongsTo('Airport');
      }
  
      public function destination(){
          return $this-&gt;belongsTo('Airport');
      }
  }
  </code></pre>
  
  <p>FlightController@index:</p>
  
  <pre><code>public function index()
      {
          $flights = Flight::with('origin')-&gt;with('destination')-&gt;get();
          return Response::json($flights, 200);
      }
  </code></pre>
  
  <p>Part of the response:</p>
  
  <pre><code>[
  {
  "id": "1",
  "number": "112",
  "origin": null,
  "destination": null,
  "price": "232",
  "created_at": "2014-12-28 11:49:44",
  "updated_at": "2014-12-28 11:49:44"
  },
  {
  "id": "2",
  "number": "812",
  "origin": null,
  "destination": null,
  "price": "192",
  "created_at": "2014-12-28 11:49:44",
  "updated_at": "2014-12-28 11:49:44"
  }
  ]
  </code></pre>
  
  <p>I am simply trying to fetch all the flights data and eager load all the airports with it but for some reason the response does not have the origin and destination data in it. Am I making a mistake in the syntax somewhere or is there a problem with my logic?</p>