I am using yjra datatable to make some of my table.. it works fine in my local, but its not working when i deploy..
The return of the yajra is always
message :’server error’
I already check that it also not going to the server side (php).. it just like stuck in the client side (java script)
Here is my client side..
var productList = $('#productList').DataTable({ pagingType : 'simple_numbers', "language" : { "lengthMenu" : "terlihat _MENU_", "paginate" : { "previous" : "<", "next" : ">" }, "search" : "", "searchPlaceholder" : "Masukkan kata kunci...", "info" : "_START_ hingga _END_ dari _TOTAL_" }, processing: true, serverside: true, asynx : true, ajax: { url: "{{ route('apiGetProductIndex') }}", type: "POST", headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' }, data: function (d) { d.product_type = $('#productTypeFilter').val(); d.warehouse = $('#warehouseFilter').val(); d._token = '{{ csrf_token() }}'; } }, columns: [ { data: 'product.code', name: 'code' }, { data: 'product.name', name: 'name' }, { data: 'product.product_type.name', name: 'product_type' }, { data: 'quantity', name: 'quantity' }, { data: 'product_unit.name', name: 'unit' }, { data: 'buy_price', name: 'buy_price' }, { data: 'sell_price', name: 'sell_price' }, { data: 'actions', name: 'actions'} ] });
Hope someone can help me to make it works
Leonard Davidson is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.