title: Laravel 5 Eloquent join 2 table got Property [tradeHistories] does not exist on this collection instance
body: <p>I have a problem here, and I don't have any idea why it's happened, because I followed the tutorial on youtube precisely.</p>
  
  <p>Here is the problem:</p>
  
  <p><strong>Account.php</strong></p>
  
  <pre><code>#region Relationship: one to many
  public function tradeHistories() {
      return $this-&gt;hasMany('App\TradeHistory');
  }
  #endregion
  </code></pre>
  
  <p><strong>TradeHistory.php</strong></p>
  
  <pre><code>#region Relationship: one to many (reversed)
  public function account() {
      return $this-&gt;belongsTo('App\Account');
  }
  #endregion
  </code></pre>
  
  <p><strong>AccountsController.php</strong></p>
  
  <pre><code>public function index()
  {
      $accounts = Account::all();
      dd($accounts-&gt;tradeHistories);
      return view('pages.account.index')
              -&gt;with('active', 'account')
              -&gt;with('accounts', $accounts);
  }
  </code></pre>
  
  <p>In returns I got this message</p>
  
  <blockquote>
    <p>"Property [tradeHistories] does not exist on this collection instance."</p>
  </blockquote>
  
  <p>So why I got that message? because I want to show all the trade histories for all account.</p>