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 8676c45 + f5ff61a commit a10eb15Copy full SHA for a10eb15
src/Services/DataTable.php
@@ -186,14 +186,14 @@ public function request()
186
*/
187
public function ajax()
188
{
189
- $source = null;
+ $query = null;
190
if (method_exists($this, 'query')) {
191
- $source = app()->call([$this, 'query']);
192
- $source = $this->applyScopes($source);
+ $query = app()->call([$this, 'query']);
+ $query = $this->applyScopes($query);
193
}
194
195
/** @var \Yajra\DataTables\DataTableAbstract $dataTable */
196
- $dataTable = app()->call([$this, 'dataTable'], compact('source'));
+ $dataTable = app()->call([$this, 'dataTable'], compact('query'));
197
198
if ($callback = $this->beforeCallback) {
199
$callback($dataTable);
0 commit comments