You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is when i am using Paginate on model and it makes this query that counts all results from the database.
But i have no option to retrieve the Total Count and have to make another query to get countAllResults again.
So i am duplicating queries because of this.
The text was updated successfully, but these errors were encountered:
/**
* Returns the total count of the results.
*
* @param string|null $group
*
* @return integer
*/
public function getTotalResults(string $group = 'default'): int
{
$this->ensureGroup($group);
return $this->groups[$group]['total'];
}
This works great Surely as i see the pattern from all other functions
I am requesting this because it is easy to make.
The problem is when i am using Paginate on model and it makes this query that counts all results from the database.
But i have no option to retrieve the Total Count and have to make another query to get countAllResults again.
So i am duplicating queries because of this.
The text was updated successfully, but these errors were encountered: