title: Method not allowed in Laravel. Why in this case?
body: <p>I would like to know why I have a "Not Allowed" method in this case. I'm trying to set a value to NULL (I have an hasClone column) when I delete an entry that I duplicated.</p>
  
  <p>My controller :</p>
  
  <pre><code>public function destroyChanges($id)
    {
      $activity = Activity::findOrFail($id);
      $activity-&gt;delete();
  
      return redirect()-&gt;to('/admin/activity/setCloneNull/' . $activity-&gt;parent_id);
    }
  
  public function setCloneNull($id, Activity $activity)
  {
    $activity = $activity-&gt;where('id', '=', $id)-&gt;first();
    $activity-&gt;hasClone = NULL;
    $activity-&gt;save();
    return redirect(url('/admin/activity/'));
  }
  </code></pre>
  
  <p>Routes :</p>
  
  <pre><code>  Route::delete('activity/destroyChanges/{id}', ['as' =&gt; 'cancel.activity', 'uses' =&gt; 'ActivityCrudController@destroyChanges']);
    Route::post('activity/setCloneNull/{id}', ['as' =&gt; 'setCloneNull.activity', 'uses' =&gt; 'ActivityCrudController@setCloneNull']);
  </code></pre>
  
  <p>EDIT : I get the error when I try to run the 'setCloneNull' method. The error is 405 Method not allowed</p>
  
  <p>How to make it work? thank you !</p>