title: The PUT method is not supported for this route. Supported methods: GET, HEAD, POST. in laravel
body: <p>i want to do seller can edit and update product</p>
  
  <p>this is ProductController</p>
  
  <pre><code>public function edit($id)
      {
          $product = Product::find($id);
          return view('product.edit', compact('product'));
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @param  \Illuminate\Http\Request  $request
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function update(Request $request, $id)
      {
          $product = Product::find($id);
          $product-&gt; title = $request-&gt; title;
          $product-&gt; description = $request-&gt; description;
          $product-&gt; price = $request-&gt; price;
  
          if($request-&gt;hasFile('image')){
              $file = $request-&gt; file('image');
              $filename = time().'.'.$file-&gt; getClientOriginalExtension();
              $location = public_path('/images');
              $file-&gt; move($location, $filename);
              $oldImage = $product-&gt;image;
              \Storage::delete($oldImage);
              $product-&gt; image= $filename;
          }
          $product-&gt; save();
  
          return back();
      }
  </code></pre>
  
  <p>this is edit.blade.php</p>
  
  <pre><code>&lt;form action="{{route('product.update', $product-&gt;id)}}" method="post" enctype="multipart/form-data"&gt;
          {{csrf_field()}}
          {{method_field('put')}} 
  [...]
  
  &lt;button type="submit" class="btn btn-success"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>this is web.php</p>
  
  <pre><code>Route::get('/index', 'ProductController@index');//seller view all product
  
  Route::get('/create', 'ProductController@create'); //seller create new product
  Route::post('','ProductController@store')-&gt;name('product.store'); //store in database
  
  Route::get('/edit/{id}','ProductController@edit'); // seller edit post
  Route::post('','ProductController@update')-&gt;name('product.update'); //seller update
  </code></pre>
  
  <p>when i click submit button for update 
  The PUT method is not supported for this route. Supported methods: GET, HEAD, POST.  show up</p>
  
  <p>how i can fix it? PLEASE HELP</p>