title: Laravel 5.2 : delete() And forceDelete()
body: <p>In My Controller :</p>
  
  <pre><code>public function destroy($id)
  {
      $task = Task::findOrFail($id);
      if($task-&gt;forceDeleting){
        $task-&gt;forceDelete();
      }
      else {
        $task-&gt;delete();
      }
        return back();
  }
  </code></pre>
  
  <p>In the above method the <code>else</code> section is working but the <code>if</code> is not working and throws error <code>No query results for model [App\Task]</code> with <code>URI</code> shows <code>http://localhost/Final/public/todo/28</code></p>
  
  <p>I am using the same method from views to <code>softDeletes</code> and <code>Permanent Deletes</code>.</p>
  
  <pre><code>{{ Form::open(['method' =&gt; 'DELETE', 'route' =&gt; ['todo.destroy', $task-&gt;id]]) }}
  {{ Form::button('&lt;i aria-hidden="true"&gt;&lt;/i&gt;', array('type' =&gt; 'submit', 'class' =&gt; 'fa fa fa-trash fa-3x complete-icon')) }}
  {{ Form::close() }}
  </code></pre>