title: Laravel Search Delete
body: <p>When I make search and I get the search results, I try to delete a record , its deleted show the message that successfully deleted but after I get the error  throw new MethodNotAllowedHttpException($others);</p>
  
  <pre><code>public function destroy($id)
  {
      $id = Hashids::decode($id);
      $id = implode(',', $id);
  
      $sub = Subs::find($id);
      $sub-&gt;delete();
  
      return response()-&gt;json([
          'success' =&gt; "Subscription Plan Deleted successfully.",
          'tr'      =&gt; 'tr_' . $id,
      ]);
  }
  </code></pre>
  
  <p>The routes:</p>
  
  <pre><code>Route::post('/subscriptions/search/results','SubsController@searchSubs'); 
  Route::get('/subscriptions/restore/{id}', 'SubsController@restore'); 
  </code></pre>
  
  <p>The link:</p>
  
  <pre><code>&lt;a href="{{action('SubsController@destroy', Hashids::encode($sub['id']))}}" class="btn btn-danger btn"
     data-tr="tr_{{$sub['id']}}" data-toggle="confirmation" data-btn-ok-label="Delete" data-btn-ok-icon="fa fa-remove"
     data-btn-ok-class="btn btn btn-danger" data-btn-cancel-label="Cancel"
     data-btn-cancel-icon="fa fa-chevron-circle-left" data-btn-cancel-class="btn btn btn-default"
     data-title="Are you sure you want to delete ?" data-placement="left" data-singleton="true"&gt;Delete &lt;/a&gt;
  </code></pre>