title: Laravel AJAX PUT & DELETE
body: <p>On my development machine, everything works fine in regards to POST, PUT, DELETE, GET.</p>
  
  <p>For example:</p>
  
  <pre><code>POST https://example.com/laravel/project (will create a new project - with data coming in from ajax)
  PUT https://example.com/laravel/project/1 (will update the content of project with ID 1)
  DELETE https://example.com/laravel/project/1 (will delete the project with ID 1)
  </code></pre>
  
  <p>However, I moved my project to production (a different server) and now</p>
  
  <pre><code>POST https://example.com/laravel/project (will create a new project as expected)
  PUT https://example.com/laravel/project/1 (will not **update** project 1)
  DELETE https://example.com/laravel/project/1 (will **not** delete project 1)
  </code></pre>
  
  <p>I have checked chrome's network tab, and I can see the cookies being present and the data that is coming in from the ajax call (for example, the fields that are updated/modified).</p>
  
  <p>Also, I am getting a status 200 so there aren't any issues on webserver from what I understand too.</p>
  
  <p>Examples of my ajax calls below - they are in $.ajax and have success and fail functions. just showing the important bits :)</p>
  
  <pre><code>type: 'POST',
  url: '/laravel/project',
  data: {
      '_token': $('input[name=_token]').val(),
      'project_name': $('#project_name_add').val(),
      'category': $('#category_add').val()
  }
  
  type: 'PUT',
  url: '/laravel/project/' + id,
  data: {
      '_token': $('input[name=_token]').val(),
      'project_name': $('#project_name_edit').val(),
      'category': $('#category_edit').val()
  },
  </code></pre>
  
  <p>However, it is not actually updating or deleting anything.</p>
  
  <p>Thanks for your help.</p>