title: How to logout with a GET request in Laravel
body: <p>I am getting error when i am logout, it's showing me this error...&quot;The GET method is not supported for this route. Supported methods: POST.&quot;
  Please help me to solve this issue..</p>
  <p>Here are my code...</p>
  <pre><code>@if(Auth::check())
    &lt;li&gt;&lt;i class=&quot;fa fa-user&quot;&gt;&lt;/i&gt; {{Auth::user()-&gt;name}}:
      &lt;a href=&quot;{{url('logout')}}&quot;&gt;logout&lt;/a&gt;
    &lt;/li&gt;
  @else
    &lt;li&gt;
      &lt;a href=&quot;{{route('login')}}&quot;&gt;&lt;i class=&quot;fa fa-user&quot;&gt;&lt;/i&gt;Login&lt;/a&gt;
    &lt;/li&gt;
  @endif
  </code></pre>