title: Property [column] does not exist on this collection instance
body: <h3>Unable to access Laravel Eloquent Relationship</h3>
  <hr />
  <p>While using <code>get()</code> method</p>
  <pre><code>        $user = User::find(1)-&gt;get(); 
          
          $foo = $user-&gt;posts-&gt;title;
  
  </code></pre>
  <blockquote>
  <p>Property [posts] does not exist on this collection instance.</p>
  </blockquote>
  <hr />
  <p>After using <a href="https://stackoverflow.com/a/41366122/14138027"><code>first()</code></a> method</p>
  <pre><code>        $user = User::find(1)-&gt;first(); 
          
          $foo = $user-&gt;posts-&gt;title;
  </code></pre>
  <p>Or</p>
  <pre><code>
          $user = User::with('posts')-&gt;first(); 
          
          $foo = $user-&gt;posts-&gt;title;
  
  </code></pre>
  <blockquote>
  <p>Property [title] does not exist on this collection instance.</p>
  </blockquote>
  <hr />
  <h3>Files &amp; Configuration</h3>
  <p><code>App\Models\User.php</code></p>
  <pre><code>namespace App\Models;
  
  use App\Models\Post;
  
  class User extends Model
  {
  
      public function posts(){
  
          return $this-&gt;hasMany(
                                  Post::class, 
                                  'post_code', 
                                  'code'
                              );
      }
  
  }
  
  </code></pre>
  <p><code>App\Models\Post.php</code></p>
  <pre><code>namespace App\Models;
  
  
  class Post extends Model
  {
  
      protected $fillable = ['title', 'code', 'tags'];
      
  }
  
  </code></pre>
  <hr />
  <p><code>Post</code> table where <code>id</code> field is PK. But I want to make relation with <code>code</code> field.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>title</th>
  <th>code</th>
  <th>tags</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>Monalisa</td>
  <td>MH01</td>
  <td>arts</td>
  </tr>
  <tr>
  <td>2</td>
  <td>AI</td>
  <td>MH01</td>
  <td>science</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p><code>User</code> table in which <code>post_code</code> has many relation with <code>Post</code> table.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>name</th>
  <th>post_code</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>John</td>
  <td>MH01</td>
  </tr>
  </tbody>
  </table>
  </div>