Skip to content

Commit

Permalink
Merge branch 'master' of github.com:freshbitsweb/laratables
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravmak committed Jul 25, 2024
2 parents 2176dd7 + 0e25485 commit 6b0a70e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Laratables.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ private function shouldApplyLimit()
protected function tableData($records)
{
return [
'draw' => request('draw') + 1,
'recordsTotal' => $this->queryHandler->getRecordsCount(),
'draw' => request('draw') + 1,
'recordsTotal' => $this->queryHandler->getRecordsCount(),
'recordsFiltered' => $this->queryHandler->getFilteredCount(),
'data' => $records->toArray(),
'data' => $records->toArray(),
];
}
}

0 comments on commit 6b0a70e

Please sign in to comment.