title: Eloquent Relationship stopped working and doesn't work anymore
body: <p>I have this two models below that have a 1 on 1 relationship. They worked like a charm but suddenly ( maybe because some updates in the database ( added 2 new columns )) it stopped working. I am getting the error only when I try to reach a payment that is part of a fare. For example.</p>
  
  <pre><code>$fare-&gt;payment-&gt;amount; 
  </code></pre>
  
  <p>Gives an error: Trying to get property of non-object
  When I use a DD(); to debug I see the following show up. <a href="http://laravel.io/bin/PD8R8" rel="nofollow">Pastebin</a></p>
  
  <p>Does someone know what to do or how to solve this?</p>
  
  <p>Below u can find the models</p>
  
  <pre><code>class Fare extends Eloquent {
  
      protected $table = 'fare';
  
      public function payment()
      {
          return $this-&gt;hasOne('Payment');
      }
  
      public function email()
      {
          return $this-&gt;email;
      }
  
      public function getTimeagoAttribute()
      {
          $date = Carbon::createFromTimeStamp(strtotime($this-&gt;created_at))-&gt;diffForHumans();
          return $date;
      }
  
  } 
  
  class Payment extends Eloquent {
  
      protected $table = 'payment';
  
      public function fare()
      {
          return $this-&gt;belongsTo('Fare');
      }
  
      public function status()
      {
          return $this-&gt;belongsTo('Status');
      }
  
      public function scopeApproved($query)
      {
          return $query-&gt;where('status', 1);
      }
  
      public function scopeDeclined($query)
      {
          return $query-&gt;where('status', 2);
      }
  
      public function getTimeagoAttribute()
      {
          $date = Carbon::createFromTimeStamp(strtotime($this-&gt;created_at))-&gt;diffForHumans();
          return $date;
      }
  
  
  } 
  </code></pre>