title: Why did not delete user in table in Laravel 5.6
body: <p>I am working with Laravel 5.6 and going <code>delete</code> users from users table as admin. I have following <strong>UserController</strong> function to delete table records?</p>
  
  <pre><code>public function delete($id)
  {
      User::where('id', $id)-&gt;delete();
  
      return redirect()
                -&gt;back()
                -&gt;with('info', 'User deleted successfully'); 
  }
  </code></pre>
  
  <p>and My users data showing in index blade file with concluding delete buttons like this:</p>
  
  <pre><code>&lt;td&gt;
      &lt;a class="button is-outlined" 
        href="{{route('users.index', $user-&gt;id.'/delete/')}}" 
        onclick="return confirm('Are you sure to want to delete this record?')"
       &gt;
          Delete
       &lt;/a&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>and My delete route is like this,</p>
  
  <pre><code>Route::get('users/{users}/delete', [
      'uses' =&gt; '\App\Http\Controllers\UserController@delete',
  ]);
  </code></pre>
  
  <p>but now when <strong>I click delete button javascript</strong> confirmation is coming through and after accepting it still does not delete the records. URL is change like this:</p>
  
  <pre><code>http://localhost:8000/users?16/delete/     //16 is user id
  </code></pre>
  
  <p>how can I fix this problem?</p>