Hi I need to delete multiple user records, selected by multiple check boxes and then press delete and submit the form `userListform`.

1. In the view I have added anchor with javascript `deleteUser()`

```
<a href="javascript:void();" class="btn btn-outline-danger" onclick="deleteUser();">Delete</a>

```

2. in the view

```
<form method="POST" action="{{url('/user/delete')}}" id="userListform" >

```

3. in the route

```
Route::post('/user/delete', 'UsersController@delete');

```

4. Delete function

```

function deleteUser(){    
    var $checkboxes = jQuery('#userListform input[type="checkbox"]');
    checkedItems = $checkboxes.filter(':checked').length;    
    if(checkedItems > 0){
        var status = confirm("Do you need to delete the user!!");   
        if (status == true) {                        
            document.getElementById("userListform").submit(); 
        } else {
            return false;
        }
    }else{
        alert("Please select the users to be deleted!");    
    }
}

```

I have successfully submited the form but i'm not getting to the delete function of the `usercontroller@delete` method , instead it is showing 404 error