title: laravel default logout not working
body: <p>i used default laravel authentication and get user name into my form. but when i use logout it shows logout route and show error page expire .</p>
  
  <p>this is my view logout code</p>
  
  <pre><code>&lt;ul class="navbar-nav ml-auto"&gt;
                      &lt;!-- Authentication Links --&gt;
                      @guest
                              &lt;li&gt;&lt;a class="nav-link" href="{{ route('login') }}"&gt;{{ __('Login') }}&lt;/a&gt;&lt;/li&gt;
                      @else
                              &lt;li class="nav-item dropdown"&gt;
                                      &lt;a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre&gt;
                                              {{ Auth::user()-&gt;name }} &lt;span class="caret"&gt;&lt;/span&gt;
                                      &lt;/a&gt;
  
                                      &lt;div class="dropdown-menu" aria-labelledby="navbarDropdown"&gt;
                                              &lt;a class="dropdown-item" href="{{ route('logout') }}"
                                                   onclick="event.preventDefault();
                                                                               document.getElementById('logout-form').submit();"&gt;
                                                      {{ __('Logout') }}
                                              &lt;/a&gt;
  
                                              &lt;form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"&gt;
                                                      @csrf
                                              &lt;/form&gt;
                                      &lt;/div&gt;
                              &lt;/li&gt;
                      @endguest
              &lt;/ul&gt;
  </code></pre>
  
  <p>when i click logout it shows me /logout url and it's not working. how can i fix this error and redirect to my /home path</p>