title: Laravel Call to a member function toArray() on array Error
body: <p>I was hoping someone could possibly clear up a little confusion I've been having with this Error. So here is my code. (note) the User model has a hasMany relationship to Image</p>
  
  <pre><code>    $user = User::with('profile')-&gt;whereUsername($username)-&gt;firstOrFail();
  
      $images = $user-&gt;images-&gt;all();
  
      dd($user-&gt;toArray());
  </code></pre>
  
  <p>My confusion is dd($user->toArray()); works perfectly fine. But when I try this dd($images->toArray()) I get a Call to a member function toArray() on array. This has been killing me for a while. $user and $images are both objects but toArray() only works on $user. Also, $images[0]->toArray() works fine too so that just adds to the confusion.  </p>