title: View [login] not found
body: <p>I'm working on a Laravel project and I added a link to log out in my sidebar</p>
  
  <pre><code> &lt;a class="dropdown-item" href="{{ route('logout') }}"
                                     onclick="event.preventDefault();
                                                   document.getElementById('logout-form').submit();"&gt;
                                      {{ __('Se déconnecter') }}
                                  &lt;/a&gt;
  
                                  &lt;form id="logout-form" action="{{ ('logout') }}" method="POST" style="display: none;"&gt;
                                      @csrf
                                  &lt;/form&gt;
  </code></pre>
  
  <p>but Once I click on the link I get <strong>View [login] not found.</strong></p>
  
  <p>can you help ?</p>
  
  <p><strong>Update</strong>
  <a href="https://i.stack.imgur.com/mg4XY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mg4XY.png" alt="enter image description here"></a></p>
  
  <p><strong>update 2</strong></p>
  
  <p>I put the logout link in the view of my sidebar</p>
  
  <pre><code>&lt;div class="navbar-default sidebar" role="navigation"&gt;
  &lt;div class="sidebar-nav navbar-collapse"&gt;
      &lt;ul class="nav" id="side-menu"&gt;
  
          &lt;li&gt;
              &lt;a href="index.html"&gt;&lt;i class="fa fa-dashboard fa-fw"&gt;&lt;/i&gt; Dashboard&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href="#"&gt;&lt;i class="fa fa-bar-chart-o fa-fw"&gt;&lt;/i&gt; After sales &amp; Parts&lt;span class="fa arrow fa-fw"&gt;&lt;/span&gt;&lt;/a&gt;
              &lt;ul class="nav nav-second-level"&gt;
                  &lt;li&gt;
                      &lt;a href=""&gt;Obeya&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a href=""&gt;Parts&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
              &lt;!-- /.nav-second-level --&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href=""&gt;&lt;i class="fa fa-usd fa-fw"&gt;&lt;/i&gt; Finances&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href=""&gt;&lt;i class="fa fa-lg fa-cog fa-fw"&gt;&lt;/i&gt; Paramétrages&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a  href="{{ route('logout') }}"
                 onclick="event.preventDefault();
                                                   document.getElementById('logout-form').submit();"&gt;
                  &lt;i class="fa fa-sign-out fa-fw"&gt;&lt;/i&gt;
                  {{ __('Se déconnecter') }}
              &lt;/a&gt;
  
              &lt;form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"&gt;
                  @csrf
              &lt;/form&gt;
          &lt;/li&gt;
  
      &lt;/ul&gt;
  
  &lt;/div&gt;
  &lt;!-- /.sidebar-collapse --&gt;
  </code></pre>
  
  <p></p>