title: Trying to get property of non-object when its clearly a property on an object
body: <p>Good day, Just a quick one, why is it that Im getting "Trying to get property of non-object" error when Im accessing my object.</p>
  
  <p>echo print_r($bill['transactions'])</p>
  
  <p>result below:</p>
  
  <pre><code>Array
  (
  [transactions] =&gt; Array
      (
          [0] =&gt; stdClass Object
              (
                  [vendor] =&gt; 1
                  [total] =&gt; 8934
                  [payment_terms] =&gt; 60
                  [date_at] =&gt; 2015-02-09 00:00:00
                  [date_due] =&gt; 2015-03-11 00:00:00
              )
  
          [past_due] =&gt; 44
      )
  
  [totalAccount] =&gt; 8934
  [vendor] =&gt; Sample Supplier Co.
  )
  1
  </code></pre>
  
  <p>and when I try to loop it using this code</p>
  
  <pre><code> @foreach($bill['transactions'] as $t)
   &lt;td&gt;&lt;?php print_r($t); ?&gt;&lt;/td&gt;
   @endforeach
  </code></pre>
  
  <p>result below:</p>
  
  <pre><code>stdClass Object
  (
  [vendor] =&gt; 1
  [total] =&gt; 8934
  [payment_terms] =&gt; 60
  [date_at] =&gt; 2015-02-09 00:00:00
  [date_due] =&gt; 2015-03-11 00:00:00
  )
  1
  </code></pre>
  
  <p>then when i finally use the -> to access its property</p>
  
  <pre><code>@foreach($bill['transactions'] as $t)
  &lt;td&gt;&lt;?php echo $t-&gt;vendor; ?&gt;&lt;/td&gt;
  @endforeach
  </code></pre>
  
  <p>I then get the error. by the way Im using laravel blade </p>