title: Laravel 5.7 REST api , update section error
body: <p><code>Create</code>,<code>Delete</code>,<code>Show</code> section is working as well. I don't know what's problem.</p>
  
  <p>This is my request (when I call the <code>PUT</code> of a resource route):</p>
  
  <pre><code>============
  Request body
  ============
  name: John doe
  detail: An insteresting detail
  type: A fancy type
  
  ===============
  Request Headers
  ===============
  Accept: application/json
  Authorization: Bearer my_secret_token
  </code></pre>
  
  <p><strong>Error</strong></p>
  
  <blockquote>
    <p>"message": "No query results for model [App\Product]."</p>
  </blockquote>
  
  <p><strong>Api\Controller</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>public function update(Request $request, Product $product)
  {
      $input = $request-&gt;all();
  
  
      $validator = Validator::make($input, [
          'name' =&gt; 'required',
          'detail' =&gt; 'required'
      ]);
  
  
      if($validator-&gt;fails()){
          return $this-&gt;sendError('Validation Error.', $validator-&gt;errors());       
      }
  
  
      $product-&gt;name = $input['name'];
      $product-&gt;detail = $input['detail'];
      $product-&gt;save();
  
  
      return $this-&gt;sendResponse($product-&gt;toArray(), 'Product updated successfully.');
  }
  </code></pre>