title: Displaying A Laravel Collection in a blade template
body: <p>I'm having issues displaying a collection in a blade template.</p>
  
  <pre><code>$comments = Comment::all();
  
  return view('comments/index')-&gt;with(compact('comments'));
  </code></pre>
  
  <p>The code for the blade is:</p>
  
  <pre><code>@isset($comments)
  
  @foreach($comments as $comment)
      &lt;div&gt;
          &lt;p&gt;
              &lt;a href="{{ url('comments/', $comment-&gt;id) }}"&gt;&lt;{{ $comment-&gt;commentor }}&lt;/a&gt;
          &lt;/p&gt;
      &lt;/div&gt;
      &lt;hr&gt;
  @endforeach
  @endisset
  
  @empty($comments)
      &lt;div&gt;
          &lt;p&gt;There were no comments available.&lt;/p&gt;
          {{ $comments }}
      &lt;/div&gt;
  @endempty
  </code></pre>
  
  <p>But not sure how to get the data to render in the template.  It just renders a blankpage.</p>