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.
1 parent 53b3f85 commit 8ff25c3Copy full SHA for 8ff25c3
src/QueryDataTable.php
@@ -210,12 +210,7 @@ protected function filteredCount()
210
*/
211
public function count()
212
{
213
- $builder = $this->prepareCountQuery();
214
- $table = $this->connection->raw('(' . $builder->toSql() . ') count_row_table');
215
-
216
- return $this->connection->table($table)
217
- ->setBindings($builder->getBindings())
218
- ->count();
+ return $this->prepareCountQuery()->count();
219
}
220
221
/**
0 commit comments