Skip to content

Conversation

@cosmastech
Copy link
Contributor

I tried running:

$response->setTotal(User::query()->getCountForPagination());

Only to discover that getCountForPagination returns a builder instance 😩

@cosmastech cosmastech changed the title [12.x] Passthru getCountForPagination when running on an Eloquent\Builder [12.x] Passthru getCountForPagination on an Eloquent\Builder May 16, 2025
@taylorotwell taylorotwell merged commit 8113c82 into laravel:12.x May 16, 2025
61 checks passed
@macropay-solutions
Copy link

@cosmastech passthru applies global scopes

macropay-solutions pushed a commit to macropay-solutions/maravel-framework that referenced this pull request Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants