title: How to update laravel 5.2 user edit form by using patch method
body: <p>I am following laravel tutorial by jeffrey. But I have got a problem with while update the form. I'm getting all form fields but when updating it is showing that page not found. I have tried many multiple what jeffrey told how to updating form in 5.2 </p>
  
  <p><a href="https://laracasts.com/series/laravel-5-from-scratch" rel="nofollow">https://laracasts.com/series/laravel-5-from-scratch</a></p>
  
  <pre><code>&lt;form action="form/{{$user-&gt;id}}" method="POST"&gt;
  {{method_field("PATCH")}}
          &lt;label for="name"&gt;Name&lt;/label&gt;
          &lt;input type="text" name="name" value="{{$user-&gt;name}}"&gt;
          &lt;label for="email"&gt;Email&lt;/label&gt;
          &lt;input type="text" name="email" value="{{$user-&gt;email}}"&gt;
  
          &lt;label for=""&gt;&lt;/label&gt;
          &lt;input type="submit" value="Submit" name="submit"&gt;
      &lt;/form&gt;
  
  this is routes
  Route::get("form/{id}/edit", "you@edit");
  Route::patch("form/{user}", "you@update");
  
  This is my controller 
  
  public function edit($id)
      {
          $user = laravel::findorfail($id);
          return view("form", compact("user"));
      }
  
      public function update(Request $request, User $user)
      {
          $user-&gt;update($request-&gt;all());
      }
  
  Thank you in advance.
  </code></pre>