Skip to content

Commit 4337edb

Browse files
authored
Merge pull request #120 from mtvbrianking/patch-1
Request expects JSON
2 parents ae234f4 + b2e2bec commit 4337edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ abstract class DataTable implements DataTableButtons
154154
*/
155155
public function render($view, $data = [], $mergeData = [])
156156
{
157-
if ($this->request()->ajax() && $this->request()->wantsJson()) {
157+
if ($this->request()->expectsJson()) {
158158
return app()->call([$this, 'ajax']);
159159
}
160160

0 commit comments

Comments
 (0)