Skip to content

Commit e9b28a8

Browse files
committed
Add examplde debugging response.
1 parent 4e98b6a commit e9b28a8

File tree

1 file changed

+104
-1
lines changed

1 file changed

+104
-1
lines changed

Diff for: debugger.md

+104-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,107 @@
22

33
To enable debugging mode, just set ```APP_DEBUG=true``` and the package will include the queries and inputs used when processing the table.
44

5-
> IMPORTANT: Please make sure that APP_DEBUG is set to false when your app is on production.
5+
> IMPORTANT: Please make sure that APP_DEBUG is set to false when your app is on production.
6+
7+
## Example Response
8+
```json
9+
{
10+
"draw": 1,
11+
"recordsTotal": 10,
12+
"recordsFiltered": 3,
13+
"data": [{
14+
"id": 414,
15+
"name": "Abel Cole",
16+
"email": "jklein@block.com",
17+
"created_at": "2016-07-31 23:26:10",
18+
"updated_at": "2016-07-31 23:26:10",
19+
"deleted_at": null,
20+
"superior_id": 0
21+
}, {
22+
"id": 267,
23+
"name": "Addie Satterfield",
24+
"email": "cassin.eva@pouros.info",
25+
"created_at": "2016-07-31 23:26:00",
26+
"updated_at": "2016-07-31 23:26:00",
27+
"deleted_at": null,
28+
"superior_id": 0
29+
}, {
30+
"id": 120,
31+
"name": "Adeline Mayert",
32+
"email": "rice.elian@abshire.com",
33+
"created_at": "2016-07-31 23:25:50",
34+
"updated_at": "2016-07-31 23:25:50",
35+
"deleted_at": null,
36+
"superior_id": 0
37+
}],
38+
"queries": [{
39+
"query": "select count(*) as aggregate from (select '1' as `row_count` from `users` where `users`.`deleted_at` is null and `users`.`deleted_at` is null) count_row_table",
40+
"bindings": [],
41+
"time": 1.84
42+
}, {
43+
"query": "select * from `users` where `users`.`deleted_at` is null order by `name` asc limit 10 offset 0",
44+
"bindings": [],
45+
"time": 1.8
46+
}],
47+
"input": {
48+
"draw": "1",
49+
"columns": [{
50+
"data": "id",
51+
"name": "",
52+
"searchable": "true",
53+
"orderable": "true",
54+
"search": {
55+
"value": "",
56+
"regex": "false"
57+
}
58+
}, {
59+
"data": "name",
60+
"name": "",
61+
"searchable": "true",
62+
"orderable": "true",
63+
"search": {
64+
"value": "",
65+
"regex": "false"
66+
}
67+
}, {
68+
"data": "email",
69+
"name": "",
70+
"searchable": "true",
71+
"orderable": "true",
72+
"search": {
73+
"value": "",
74+
"regex": "false"
75+
}
76+
}, {
77+
"data": "created_at",
78+
"name": "",
79+
"searchable": "true",
80+
"orderable": "true",
81+
"search": {
82+
"value": "",
83+
"regex": "false"
84+
}
85+
}, {
86+
"data": "updated_at",
87+
"name": "",
88+
"searchable": "true",
89+
"orderable": "true",
90+
"search": {
91+
"value": "",
92+
"regex": "false"
93+
}
94+
}],
95+
"order": [{
96+
"column": "1",
97+
"dir": "asc"
98+
}],
99+
"start": "0",
100+
"length": "10",
101+
"search": {
102+
"value": "",
103+
"regex": "false"
104+
},
105+
"_": "1479295888286"
106+
}
107+
}
108+
```

0 commit comments

Comments
 (0)