markcell/jquery-tabledit

Empty Request When using Laravel

Closed this issue · 0 comments

Hi,
this is my js code ... my problem is that when ajax send ,no parameters sent with it...

  $(function () {
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
            $('#productsTbl').Tabledit({
                url: '{{route('categories.update')}}',
                dataType: 'json',
                cache: false,
                editButton: false,
                deleteButton: false,
                hideIdentifier: false,
                columns: {
                    identifier: [1, 'id'],
                    editable: [[2, 'title']]
                },
            });
        });