title: Laravel: MethodNotAllowedHttpException: The GET method is not supported for this route. Supported methods: POST
body: <p>I have a very weird problem. I have a post route but I receive an error that <strong>The GET method is not supported for this route.</strong></p>
  
  <p>This is my web.php function:</p>
  
  <pre><code>Route::post('/sender',function () {
      $text = request()-&gt;text;
      event(new FormSubmitted($text));
  });
  </code></pre>
  
  <p>I'm definitely sending a post request.
  I've already checked this: <a href="https://stackoverflow.com/questions/46404530/laravel-post-method-returns-methodnotallowedhttpexception">Laravel: POST method returns MethodNotAllowedHttpException</a></p>
  
  <p>But the chosen answer is unclear.</p>
  
  <p>My View Code:</p>
  
  <pre><code>&lt;?php echo csrf_field(); ?&gt;
  
  {{ csrf_field() }}
  
  
  
  &lt;form action="/sender" method="post&gt;
  First name: &lt;input type="text" name="fname"&gt;&lt;br&gt;
  &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  
  &lt;input type="text" name="content"&gt;&lt;br&gt;
  &lt;input type="submit"&gt;
  </code></pre>