title: The POST method is not supported for this route. Supported methods: GET, HEAD. Laravel
body: <p>I have a problem with my edit page. When I submit I get this error: </p>
  
  <blockquote>
    <p>The POST method is not supported for this route. Supported methods: GET, HEAD.</p>
  </blockquote>
  
  <p>I have no clue where it comes from as I am pretty new to Laravel. </p>
  
  <p>routes(web.php):</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth'], function () {
  Route::get('/', 'ProjectController@index');
  
  Route::get('/projects/{id}', 'ProjectController@show');
  Route::post('/create','ProjectController@store');
  Route::get('/create', 'ProjectController@create');
  Route::get('/projects/{id}/delete', 'ProjectController@destroy');
  Route::put('/edit','ProjectController@update');
  Route::get('/projects/{id}/edit', 'ProjectController@edit');
  
  });
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code> public function edit($id)
      {
          return view('project.edit',[
  
              'project' =&gt; Project::find($id)
          ]);
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function update(Request $request)
      {
          $project = Project::find($request-&gt;id);
          $project-&gt;project_name = $request-&gt;input('project_name');
          $project-&gt;client = $request-&gt;input('client');
          $project-&gt;description = $request-&gt;input('description');
          $project-&gt;time_span = $request-&gt;input('time_span');
          $project-&gt;text_report = $request-&gt;input('text_report');
          $project-&gt;created_by = $request-&gt;input('created_by');
  
          $project-&gt;save();
  
          return  redirect('/')-&gt;with('success', 'Project aangepast');
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/k3Ffb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/k3Ffb.png" alt="enter image description here"></a></p>