We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae234f4 + b2e2bec commit 4337edbCopy full SHA for 4337edb
src/Services/DataTable.php
@@ -154,7 +154,7 @@ abstract class DataTable implements DataTableButtons
154
*/
155
public function render($view, $data = [], $mergeData = [])
156
{
157
- if ($this->request()->ajax() && $this->request()->wantsJson()) {
+ if ($this->request()->expectsJson()) {
158
return app()->call([$this, 'ajax']);
159
}
160
0 commit comments