title: When I use the return back(), I get an error
body: <p>I have a modal form in a page pointing to a route that includes an message to a client, and it does all right, but when it is going back to the page I got the message of wrong method :</p>
  <p>The GET method is not supported for this route. Supported methods: POST</p>
  <p>The form is :</p>
  <pre><code>&lt;form action=&quot;{{route('incluir_mensagem')}}&quot; method=&quot;post&quot;&gt;
                  
                  @csrf
                 
                  &lt;div class=&quot;modal fade&quot; id=&quot;staticBackdrop&quot; data-bs-backdrop=&quot;static&quot; data-bs-keyboard=&quot;false&quot; tabindex=&quot;-1&quot; aria-labelledby=&quot;staticBackdropLabel&quot; aria-hidden=&quot;true&quot;&gt;
                    &lt;div class=&quot;modal-dialog modal-lg&quot;&gt;
                      &lt;div class=&quot;modal-content&quot;&gt;
                        &lt;div class=&quot;modal-header cab-msg&quot;&gt;
                          &lt;h5 class=&quot;modal-title&quot; id=&quot;staticBackdropLabel&quot;&gt;Nova mensagem para : {{$necps-&gt;nome_part}}&lt;/h5&gt;
                          &lt;button type=&quot;button&quot; class=&quot;btn-close&quot; data-bs-dismiss=&quot;modal&quot; aria-label=&quot;Close&quot;&gt;&lt;/button&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;modal-body&quot;&gt;
                            &lt;div class=&quot;texto-oferta&quot;&gt;Oferta : {{$ofps-&gt;desc_of}}&lt;/div&gt;
                            &lt;div class=&quot;texto-necessidade&quot;&gt;Necessidade : {{$necps-&gt;desc_nec}}&lt;/div&gt;
                            &lt;br&gt;
                            &lt;textarea name =&quot;mensagem&quot; class=&quot;form-control&quot; id=&quot;mensagem&quot; rows=&quot;3&quot;&gt;&lt;/textarea&gt;
  
                            &lt;input value=&quot;{{$ofps-&gt;id_part}}&quot; name=&quot;id_part_t&quot; id=&quot;id_part_t&quot; type=&quot;hidden&quot;&gt;
                            &lt;input value=&quot;{{$ofps-&gt;id_of_part}}&quot; name=&quot;id_of_part_t&quot; id=&quot;id_of_part_t&quot; type=&quot;hidden&quot;&gt;
                            &lt;input value=&quot;{{$necps-&gt;id_nec_part}}&quot; name=&quot;id_nec_part_t&quot; id=&quot;id_nec_part_t&quot; type=&quot;hidden&quot;&gt;
                        &lt;/div&gt;
                        &lt;div class=&quot;modal-footer&quot;&gt;
                          &lt;button type=&quot;button&quot; class=&quot;btn btn-danger&quot; data-bs-dismiss=&quot;modal&quot;&gt;Sair&lt;/button&gt;
                          &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary&quot;&gt;Enviar&lt;/button&gt;
                        &lt;/div&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
                  &lt;/div&gt;
  
                &lt;/form&gt;
  </code></pre>
  <p>The route is :</p>
  <pre><code>Route::post('incluir_mens_trans',  [TransacoesController::class,'incluir_mens_trans'])-&gt;name('incluir_mensagem');
  </code></pre>
  <p>and the controller is :</p>
  <pre><code>public function incluir_mens_trans(Request $request){
  
  $confere = DB::table('transacoes')-&gt;where('id_nec_part', request('id_nec_part_t'))
                                                  -&gt;where('id_of_part', request('id_of_part_t'))
  
                                                  -&gt;first();
  
              if(!$confere) {                                                   
  
                    $trans = DB::table('transacoes')-&gt;insertGetId([
                          'id_nec_part' =&gt; request('id_nec_part_t'),
                          'id_of_part' =&gt; request('id_of_part_t'),
  
                          /*Em andamento */
                          'id_st_trans' =&gt; 2, 
  
                          'data_inic' =&gt; date('Y-m-d H:i:s')
                    ]);
  
                    $id_trans = $trans;
  
              }else{
                    $id_trans = $confere-&gt;id;
              }
  
              $msgs_i = DB::table('mensagens_trans')-&gt;insert([
                    'id_trans' =&gt; $id_trans,
                    'mensagem' =&gt; request('mensagem'),
                    'data' =&gt; date('Y-m-d H:i:s')
                    
              ]);
  
              $msgs = DB::table('mensagens_trans')-&gt;where('id_trans', $id_trans)
                                                  -&gt;select('mensagens_trans.*')
                                                  -&gt;orderBy('data','desc')
                                                  -&gt;paginate(5);
  
              return back();
  </code></pre>
  <p>Some tip about what is going on?
  Thanks!</p>