title: Laravel 5.1 cant use @foreach on collection
body: <p>This is data I have:
  <a href="https://i.stack.imgur.com/Kmdkr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kmdkr.png" alt="enter image description here"></a></p>
  
  <p>but with this blade template code:</p>
  
  <pre><code>&lt;tbody&gt;
      @foreach ($orders as $order)
          &lt;tr&gt;
              &lt;td&gt;{{$order-&gt;id}}&lt;/td&gt; //51 line
              &lt;td&gt;{{$order-&gt;order-&gt;b_first_name}} {{$order-&gt;order-&gt;b_last_name}}&lt;/td&gt;
              &lt;td&gt;{{$order-&gt;order-&gt;r_first_name}} {{$order-&gt;order-&gt;r_last_name}}&lt;/td&gt;
              &lt;td&gt;£{{$order-&gt;total}}&lt;/td&gt;
  
              &lt;td&gt;{{$order-&gt;validity-&gt;diffForHumans()}}&lt;/td&gt;
  
  
          &lt;/tr&gt;
          @endforeach
              &lt;/tbody&gt;
  </code></pre>
  
  <p>I got this error:</p>
  
  <blockquote>
    <p>ErrorException in fbe60fc17d23b35313269a941fc4d6f0 line 51: Trying to
    get property of non-object (View:
    /home/dgadmin/public_html/test/resources/views/admin/expired.blade.php)</p>
  </blockquote>
  
  <p>What is the problem here? Why I cant use @foreach loop ? </p>