title: Laravel HasOne relationship empty
body: <p>I am trying to create a relationship between Player and Roleplay and its returning null. I know for a fact it should be working because the following code works perfectly:</p>
  
  <pre><code>Roleplay::find(Auth::user()-&gt;id);
  </code></pre>
  
  <p>And returns the correct data, a full array of the correct data.</p>
  
  <p>When trying to access it this way:</p>
  
  <pre><code>Auth::user()-&gt;roleplay-&gt;user_id;
  </code></pre>
  
  <p>It doesn't work, can someone help me find out why? <br><br><br>
  <strong>How do you know its empty?<br></strong>
  Because <code>{{var_dump(Auth::user()-&gt;roleplay)}}</code> in blade view returns <code>EMPTY</code></p>
  
  <p>When using it the view I also get a undefined error.
  Primary key of roleplay table (srp_user_statistics) is user_id, and the primary key of player table (users) is id</p>
  
  <p>here is the code:</p>
  
  <pre><code>Player:
  &lt;?php
  namespace App\Database\Frontend\User;
  
  use Hash;
  use Eloquent;
  use \Illuminate\Auth\Authenticatable;
  use \Illuminate\Contracts\Auth\Authenticatable as Authentication;
  
  class Player extends Eloquent implements Authentication
  {
      use Authenticatable;
  
      protected $primaryKey   = 'id';
      protected $table        = 'users';
      public $timestamps      = false;
      protected $fillable     = [];
  
      public function setPasswordAttribute($value)
      {
          $this-&gt;attributes['password'] = Hash::make($value);
      }
  
      public function setUsernameAttribute($value)
      {
          return $this-&gt;attributes['username'] = $value;
      }
  
      public function roleplay()
      {
          return $this-&gt;hasOne('App\Database\Frontend\User\Roleplay', 'user_id');
      }
  }
  </code></pre>
  
  <p>Roleplay:
      
  
  <pre><code>use Eloquent;
  
  class Roleplay extends Eloquent
  {
      protected $primaryKey   = 'user_id';
      protected $table        = 'srp_user_statistics';
      public $timestamps      = true;
      protected $fillable     = [];
  
      public function user()
      {
          return $this-&gt;belongsTo('App\Database\Frontend\User\Player', 'user_id', 'id');
      }
  
      public function government_role()
      {
          return $this-&gt;belongsTo('App\Database\Frontend\Roleplay\GovernmentRole', 'government_id');
      }
  }
  </code></pre>