title: How to make a request to delete a row in DB?
body: <p>I have read everything on this topic - and still in a fog. </p>
  
  <p>I made a CRUD functional, and the question is - how to test/ how to use delete or update functions?</p>
  
  <p>In my routes.php there is a one string:</p>
  
  <pre><code>Route::resource('templates', 'Vendor\App\Controllers\TemplateController');
  </code></pre>
  
  <p>In controller <code>destroy</code> and <code>update</code> functions are implemented.</p>
  
  <p>So i'm trying to test delete. When a send DELETE request - i've got a error</p>
  
  <pre><code> RouteCollection-&gt;methodNotAllowed(array('GET', 'HEAD', 'POST'))
  </code></pre>
  
  <p>As far as i googled, method must be <code>POST</code>, but one of the form fields - named <code>_method</code> must have the value <code>DELETE</code> So i use the postman for testing, and got the same error:</p>
  
  <p><a href="https://i.stack.imgur.com/5tmlC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5tmlC.png" alt="enter image description here"></a> </p>
  
  <p>What am i doing wrong? how to make a delete request?</p>