title: Show category in menu blade laravel 7
body: <p>I'm trying to show the categories in a drop down menu, but I'm having some trouble in the blade. The categories don't show, but I'm not getting an error.</p>
  <p>This is my blade:</p>
  <pre><code>&lt;li class=&quot;nav-item dropdown&quot;&gt;
      &lt;a class=&quot;nav-link dropdown-toggle&quot; href=&quot;#&quot; id=&quot;navbarDropdown&quot; role=&quot;button&quot; data-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;
           PRODUCTEN
      &lt;/a&gt;
      &lt;div class=&quot;dropdown-menu&quot; aria-labelledby=&quot;navbarDropdown&quot;&gt;
          &lt;a class=&quot;dropdown-item&quot; href=&quot;/products&quot;&gt;Alle producten&lt;/a&gt;
          &lt;a class=&quot;dropdown-item&quot;
            @foreach(\App\Category::all() as $cat)
              &lt;a class=&quot;dropdown-item&quot; href=&quot;/cat/{{ $cat-&gt;id }}&quot;&gt;{{ $cat-&gt;categoryName }}&lt;/a&gt;
            @endforeach
         &lt;/a&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>