title: The GET method is not supported for this route. Supported methods: PUT. but i'm using PUT
body: <blockquote>
    <p>I'm trying to update my post table, yet it keeps giving me a method error, saying that I should be using <code>PUT</code> instead of <code>GET</code>.</p>
  </blockquote>
  
  <p>The thing is I'm using <code>PUT</code>. I've tried to change the <code>@crsf</code> and change the <code>@method('PUT')</code> several times, putting a hidden input included. When I call <code>route:list</code>, it shows that I'm using the <code>PUT</code> method, yet it still gives me the same error. I have no idea what it could be, does anyone have any idea? </p>
  
  <pre><code>    &lt;section id="index" class="container"&gt;
          &lt;div class="col-md-12 d-flex justify-content-center mt-5"&gt;
              &lt;article class="new-post col-md-6 py-2"&gt;
  
                  &lt;header class="col-12 row d-flex justify-content-center"&gt;
                      &lt;div class="add-header p-1"&gt;
                          &lt;h2 class="m-2"&gt;Editar Post&lt;/h2&gt;
                      &lt;/div&gt;
                  &lt;/header&gt;
  
                  &lt;form method="POST" class="mt-5" action= "/edit_post/{id}" enctype="multipart/form-data"&gt;
                      @method('PUT')
                      @csrf
  
                      &lt;div class="add-photo form-group d-flex justify-content-center p-5"&gt;
                          &lt;label for="file-input"&gt;
                              &lt;img src="{{ url($post-&gt;imagem) }}" alt="imagem do post"&gt;
                          &lt;/label&gt;
                          &lt;input id="file-input" name="imagem" type="file"&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <pre><code>
      // rotinas pagina index
      Route::get('/index', 'PostsController@posts');
  
      // crud posts
      Route::get('/add_post', 'PostsController@adicionandoPost');
      Route::post('/add_post', 'PostsController@salvandoPost');
      Route::put('/edit_post/{id}', 'PostsController@alterarPost');
      Route::delete('/edit_post{id}', 'PostsController@deletarPost');
  
      //crud usuario
      Route::get('/profile/{id}', 'UserController@profile');
      Route::put('/profile/{id}', 'UserController@alterarUsuario');
      Route::delete('/index', 'UserController@deletarUsuario')-&gt;name('delete');
  
  });
  </code></pre>
  
  <p><strong>PostsController:</strong></p>
  
  <pre><code>public function alterarPost($id, Request $request) {
      $post = Post::findOrFail($id);
  </code></pre>
  
  <p><strong>form:</strong></p>
  
  <pre><code>
                      &lt;input type="hidden" name="_method" value="PUT"&gt;
                      &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  
                      &lt;div class="add-photo form-group d-flex justify-content-center p-5"&gt;
                          &lt;label for="file-input"&gt;
                              &lt;img src="{{ url($post-&gt;imagem) }}" alt="imagem do post"&gt;
                          &lt;/label&gt;
                          &lt;input id="file-input" name="imagem" type="file"&gt;
                      &lt;/div&gt;
  
                      &lt;input type="hidden" name="user_id" value="{{$post-&gt;id}}"&gt;
  
                      &lt;div class="add-input form-group mt-2"&gt;
                          &lt;input class="col-12 p-1" name="descricao" type="text" placeholder="Descrição" value="{{ $post-&gt;descricao }}"&gt;
                      &lt;/div&gt;
  
                      &lt;div class="add-input form-group"&gt;
                          &lt;input class="col-12 p-1" name="tags" type="text" placeholder="Tags" value="{{ $post-&gt;tags }}"&gt;
                      &lt;/div&gt;
  
                      &lt;div class="add_photo d-flex justify-content-end p-3"&gt;
                          &lt;button class="btn btn-danger m-1" type="button"&gt;Cancelar&lt;/button&gt;
                          &lt;button class="btn btn-success m-1" type="submit"&gt;Publicar&lt;/button&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
  </code></pre>