title: Laravel 5.4.24 throws MethodNotAllowedHttpException during logout of users
body: <p>I am working on an authentication system in Laravel 5.4.24. I get an error on my browser when trying to logout: <em>MethodNotAllowedHttpException in RouteCollection.php on line 251</em>.</p>
  
  <p>The logout route in web.php in routes folder is:</p>
  
  <pre><code>Route::post('logout', 'Auth\LoginController@logout')-&gt;name('logout'); 
  </code></pre>
  
  <p>The controller stored app/Http/LoginController.php has the following code:</p>
  
  <pre><code>namespace App\Http\Controllers\Auth;
  
  use App\Http\Controllers\Controller;
  use Illuminate\Foundation\Auth\AuthenticatesUsers;
  
  class LoginController extends Controller
  {
      /*
      |--------------------------------------------------------------------------
      | Login Controller
      |--------------------------------------------------------------------------
      |
      | This controller handles authenticating users for the application and
      | redirecting them to your home screen. The controller uses a trait
      | to conveniently provide its functionality to your applications.
      |
      */
  
      use AuthenticatesUsers;
      /**
       * Where to redirect users after login.
       *
       * @var string
       */
      protected $redirectTo = '/';
  
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct()
      {
          $this-&gt;middleware('guest')-&gt;except('logout');
      }
  }
  </code></pre>
  
  <p><strong>Updated Question</strong>
  The code below is my login.blade.php</p>
  
  <pre><code>@extends('main')
  
  @section('title', '| login')
  
  @section('content')
      &lt;div class='row'&gt;
          &lt;div class='col-md-6 col-md-offset-3'&gt;
              {!! Form::open() !!}
  
                  {{ Form::label('email', 'Email:') }}
                  {{  Form::email('email', null, ['class' =&gt; 'form-control']) }}
  
                  {{  Form::label('password', 'Password:') }}
                  {{  Form::password('password', ['class' =&gt; 'form-control'])  }}
  
                  &lt;br&gt;
                  {{  Form::checkbox('remember') }} {{  Form::label('remember', 'Remember Me:') }}
  
                  &lt;br&gt;
                  {{  Form::submit('Login', ['class' =&gt; 'btn btn-primary btn-block']) }}
  
  
              {!!  Form::close()  !!}
          &lt;/div&gt;
      &lt;/div&gt;
  
  @endsection
  </code></pre>
  
  <p><strong>main.blade.php</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;!-- Connection to the partials called _head.blade.php --&gt;
  @include('partials._head')
  &lt;body&gt;
  
      @include('partials._nav')
  
      &lt;!-- The below class container holds all body content--&gt;
      &lt;div class='container'&gt;
  
          @include('partials._messages')
  
          {{ Auth::check() ? "Logged In" : "Logged Out"}}
  
          @yield('content')
  
          @include('partials._footer')
      &lt;/div&gt; &lt;!-- End of container --&gt;
  
      @include('partials._javascript')
      @yield('scripts')
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>