title: How do I fix The GET method is not supported for this route
body: <p>Yes, there are a few questions like this and yes I have looked through them!  I have been looking at this for a few days now and I'm losing the will to live a little.</p>
  <p>I have a mostly working site.  I have a page that uses post to add a record to the db, this works.  I have another page that adds to a different table using the same method but doesn't work.  Bonkers.</p>
  <p>On the page that doesn't work:</p>
  <p><strong>My form:</strong></p>
  <pre><code>&lt;form actio=&quot;{{route('site',$site-&gt;id)}}/&quot; method=&quot;post&quot;&gt;
          @csrf
  </code></pre>
  <p><strong>My route:</strong></p>
  <pre><code>Route::post('/site/{id}', [SiteController::class, 'store'])-&gt;name('site');
  </code></pre>
  <p><strong>My controller:</strong></p>
  <pre><code>public function store(){
      $site = new Site ();
      $site-&gt;location = request(&quot;location&quot;);
      $site-&gt;rating = request(&quot;rating&quot;);
      $site-&gt;x_coord = request(&quot;x_coord&quot;);
      $site-&gt;y_coord = request(&quot;y_coord&quot;);
      $site-&gt;save();
      return redirect('/location/'.request(&quot;location&quot;))-&gt;with('mssg','Marker added');
  }
  </code></pre>
  <p><strong>The error;</strong></p>
  <p>The GET method is not supported for this route. Supported methods: POST, DELETE.</p>
  <p><strong>I've tried:</strong></p>
  <p>things like changing the method to GET, I've even put @method=('POST') in there just in case.</p>
  <p>I've seen posts referring to clearing the route using php artisan, the only thing I haven't tried, but how do you do it?  I've tried doing it locally in vscode before uploading which didn't work.  Do I do this via SSH?  I'd have to upgrade my hosting for this so need to be sure.</p>
  <p>Thanks</p>