im使用laravel 5和yajra数据表6.0
控制台中没有错误消息,但在我的浏览器中只是显示如下,而不显示表格。
{“绘制”:0,“ recordsTotal”:12,“ recordsFiltered”:12,“数据”:[{“ id”:“ 1”,“ kodeBarang”:“ 1111”,“ namaBarang”:“潘婷“,” stock“:” 12“,” hargaJual“:” 5000“,” kategory“:” Shampo“,” created_at“:” 2019-06-26 03:13:14“,” updated_at“:” 2019- 06-26 03:13:14“},{” id“:” 2“,” kodeBarang“:” 1112“,” namaBarang“:” Sunslik“,”股票“:” 12“,” hargaJual“:” 1500 “,” kategory“:” Shampo“,” created_at“:” 2019-06-26 03:14:27“,” updated_at“:” 2019-06-26 03:14:27“},{” id“: “ 3”,“ kodeBarang”:“ 1113”,“ namaBarang”:“ Coba”,“股票”:“ 12”,“ hargaJual”:“ 40000”,“类别”:“ Minuman”,“ created_at”:“ 2019 -06-26 04:12:06“,” updated_at“:” 2019-06-26 04:12:06“},{” id“:” 4“,” kodeBarang“:” 1115“,” namaBarang“: “ Coba2”,“股票”:“ 12”,“ hargaJual”:“ 40000”,“类别”:“ Makanan”,“ created_at”:“ 2019-06-26 04:12:26”,“ updated_at”:“ 2019-06-26 04:12:26“},{” id“:” 5“,” kodeBarang“:” 1114“,” namaBarang“:” Coba3“,”股票“:” 12“,” hargaJual“: “ 3000”,“类别”:“ Makanan”,“ created_at”:“ 2019-06-26 04:12:44”,“ updated_at”:“ 2019-06-26 04:12:44”},{“ id “:” 6“,” kodeBarang“:” 1116“,” namaBarang“:” Kopi“,”股票“:” 12“ ,“ hargaJual”:“ 5000”,“类别”:“ Minuman”,“ created_at”:“ 2019-06-26 04:13:04”,“ updated_at”:“ 2019-06-26 04:13:04” },{“ id”:“ 7”,“ kodeBarang”:“ 1117”,“ namaBarang”:“ Emboh”,“ stock”:“ 23”,“ hargaJual”:“ 22111”,“ kategory”:“ Minuman” ,“ created_at”:“ 2019-06-26 04:13:25”,“ updated_at”:“ 2019-06-26 04:13:25”},{“ id”:“ 8”,“ kodeBarang”:“ 11115“,” namaBarang“:” Ole“,” stock“:” 20“,” hargaJual“:” 5000“,” kategory“:” Minuman“,” created_at“:” 2019-06-26 04:13:41 “,” updated_at“:” 2019-06-26 04:13:41“},{” id“:” 9“,” kodeBarang“:” 111123“,” namaBarang“:” Ale-ale“,”股票“ :“ 20”,“ hargaJual”:“ 5000”,“类别”:“ Minuman”,“ created_at”:“ 2019-06-26 04:14:39”,“ updated_at”:“ 2019-06-26 04: 14:39“},{” id“:” 10“,” kodeBarang“:” 11154“,” namaBarang“:” Teh Pucuk“,”股票“:” 30“,” hargaJual“:” 1500“,”类别“:” Minuman“,” created_at“:” 2019-06-26 04:14:55“,” updated_at“:” 2019-06-26 04:14:55“},{” id“:” 11“, “ kodeBarang”:“ 111221”,“ namaBarang”:“ Beras”,“股票”:“ 12”,“ hargaJual”:“ 1500”,“类别”:“ Minuman”,“ created_at”:“ 2019-06-26 04:15:13“,” updated_at“:” 2019-06-26 04:15:13“}, {“ id”:“ 12”,“ kodeBarang”:“ 2222221”,“ namaBarang”:“ qwqqqq”,“ stock”:“ 12”,“ hargaJual”:“ 111111”,“ kategory”:“ Minuman”,“ created_at“:” 2019-07-06 16:20:52“,” updated_at“:” 2019-07-19 01:36:39“}”,“查询”:[{“查询”:“选择计数(* )作为聚合(从{{1}的row_count
中选择'1'))count_row_table“,” bindings“:[],” time“:0.71},{” query“:”从{{ 1}}“,”绑定“:[],”时间“:0.67}],”输入“:[]}
我的控制器
barangs
我的布局应用
barangs
我在Laravel中的视图
return Datatables::of(Barang::query())->make(true);