title: How to use patch request in Laravel?
body: <p>There is entity <code>User</code> that is stoted in table <code>Users</code></p>
  
  <p>Some fields in this table are null by default. </p>
  
  <p>I need to update these fields and set not null data.</p>
  
  <p>For this I try to use <code>PATCH</code> method in Laravel:</p>
  
  <p><strong>Routing:</strong></p>
  
  <pre><code>Route::patch('users/update', 'UsersController@update');
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public function update(Request $request, $id)
      {
          $validator = Validator::make($request-&gt;all(), [
              "name" =&gt; 'required|string|min:3|max:50',
              "email_work" =&gt; 'email|max:255|unique:users',
              "surname" =&gt; 'required|string|min:3|max:50',
              "tel" =&gt; 'required|numeric|size:11',
              "country" =&gt; 'required|integer',
              "region" =&gt; 'required|integer',
              "city" =&gt; 'required|integer'
          ]);
  
          if ($validator-&gt;fails()) {
              return response()-&gt;json(["message" =&gt; $validator-&gt;errors()-&gt;all()], 400);
          }
  
          $user = User::where("user_id", $id)-&gt;update([
              "name" =&gt; $request-&gt;name,
              "surname" =&gt; $request-&gt;surname,
              "tel" =&gt; $request-&gt;tel,
              "country" =&gt; $request-&gt;country,
              "city" =&gt; $request-&gt;city,
              "region" =&gt; $request-&gt;region,
              "email_work" =&gt; $request-&gt;email
          ]);
  
          return response()-&gt;json(["user" =&gt; $user]);
  
      }
  </code></pre>
  
  <p>Does it mean that I can pass any data to update?
  Should I pass <code>$id</code> parameter to routing and controller relatively?</p>
  
  <p>How to use right handler for PATCH method in Laravel?</p>