We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to get the total count() before I apply get(), but it gives an error.
$returnData = $this->trainerSlot ->orderBy('date') ->orderBy('place_id') ->offset(0)->limit(25); $allCount = $returnData->count(); // Error
If I use the same construction without a repository it works.
$returnData = TrainerSlot::orderBy('date') ->orderBy('place_id') ->offset(0)->limit(25); $allCount = $returnData->count(); // find total 1200 string
If I try to get the total amount after, I called $returnData->get(), then it only gives out the amount received after the limit&offset.
$returnData = $this->trainerSlot ->orderBy('date') ->orderBy('place_id') ->offset(0)->limit(25); $returnData->get(); $allCount = $returnData->count(); // find total 25 string
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to get the total count() before I apply get(), but it gives an error.
If I use the same construction without a repository it works.
If I try to get the total amount after, I called $returnData->get(), then it only gives out the amount received after the limit&offset.
The text was updated successfully, but these errors were encountered: