This is my button: 

```
<button class="btn btn-danger" onclick="deleteConfirmation({{$wp->id}})" id="{{$wp->id}}" data-id="{{$wp->id}}"><i class="fa fa-trash"></i></button> 

```

This is my jquery + ajax code: 

```
function deleteConfirmation(id) {
    swal.fire({
        title: "Usunąć wypis?",
        text: "Upewnij się czy chcesz usunąć ten wypis!",
        type: "warning",
        showCancelButton: !0,
        confirmButtonText: "Tak, usuń go!",
        cancelButtonText: "Nie, anuluj!",
        reverseButtons: !0
    }).then(function (e) {

        if (e.value === true) {
            var CSRF_TOKEN = $('meta[name="csrf-token"]').attr('content');

            $.ajax({
                type: 'POST',
                url: "{{url('/przedsiebiorca/wypisy/destroy')}}/" + id,
                data:  {"_token": "{{ csrf_token() }}"},
                dataType: 'JSON',
                success: function (results) {

                    if (results.success === true) {
                        swal.fire("Usunięto wypis!", results.message, "success");
                    } else {
                        swal.fire("Wystąpił błąd!", results.message, "error");
                    }
                }.then(function() {
                            location.reload();
                        });
            });

        } else {
            e.dismiss;
        }

    }, function (dismiss) {
        return false;
    })
}           

```

This is my Laravel Controller function destroy()

```
public function destroy(Request $request, $id)
{
    //
    $delete = \App\Wypisy::where('id', $id)->delete();
    return back();
    // check data deleted or not
    if ($delete == 1) {
        $success = true;
        $message = "Wypis został usunięty !";
    } else {
        $success = true;
        $message = "Wypisu nie znaleziono";
    }

    //  Return response
    return response()->json([
        'success' => $success,
        'message' => $message,
    ]);
    return back();
}

```

when I click the button, show me the confirmation window, and when I click, remove it, I will receive the message jquery.min.js: 2 POST <http://localhost:8000/przedsiebiorca/wypisy/3> 404 (Not Found) does not happen. As I copy the link above, the removal method works correctly in Laravel. What am I doing wrong ? Any tips?

Laravel 5.8, jquery 3.4.1