Skip to content

Commit f5ff61a

Browse files
committed
Fix BindingResolutionException when using Laravel 7.7.0 or greater
1 parent 8676c45 commit f5ff61a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Services/DataTable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ public function request()
186186
*/
187187
public function ajax()
188188
{
189-
$source = null;
189+
$query = null;
190190
if (method_exists($this, 'query')) {
191-
$source = app()->call([$this, 'query']);
192-
$source = $this->applyScopes($source);
191+
$query = app()->call([$this, 'query']);
192+
$query = $this->applyScopes($query);
193193
}
194194

195195
/** @var \Yajra\DataTables\DataTableAbstract $dataTable */
196-
$dataTable = app()->call([$this, 'dataTable'], compact('source'));
196+
$dataTable = app()->call([$this, 'dataTable'], compact('query'));
197197

198198
if ($callback = $this->beforeCallback) {
199199
$callback($dataTable);

0 commit comments

Comments
 (0)