title: how to force delete in laravel 5.4
body: <p>I made a user management system with soft deletion and force deletion options. However, I'm having trouble getting the force deletion option to work.</p>
  
  <p>The route:</p>
  
  <pre><code>Route::post('users/{user}/delete', 'UserController@forcedelete');
  </code></pre>
  
  <p>The relevant controller code:</p>
  
  <pre><code>public function forcedelete(User $user)
  {
       $user-&gt;forceDelete();
       return redirect('users/trash');
  }
  </code></pre>
  
  <p>The view code:</p>
  
  <pre><code>&lt;a href="{{ url('users/'.$user-&gt;id.'/delete') }}" 
     onclick="event.preventDefault(); document.getElementById('delete').submit();"&gt;
      &lt;i class="fa fa-trash-o btn btn-danger btn-xs"&gt;&lt;/i&gt;
  &lt;/a&gt;
  
  &lt;form id="delete" action="{{ url('users/'.$user-&gt;id.'/delete') }}" 
        method="POST" style="display: none;"&gt;
      {{ csrf_field() }}
      {{ method_field('DELETE') }}
  &lt;/form&gt;
  </code></pre>
  
  <p>The error that I'm getting is</p>
  
  <pre><code> MethodNotAllowedHttpException in RouteCollection.php line 233:
  </code></pre>
  
  <p>Why is it not working, and how can I fix it?</p>