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
--level
With the introduction of #538 , the Eloquent's hydrate() function cannot be chained with ->first() anymore.
hydrate()
->first()
I can name multiple reasons why one would use hydrate(), such as:
$object->getRawOriginal()
User::hydrate(['user_id' => 123, 'name' => 'John Doe'])->first();
$storedProcedureRows = $this->callStoredProcedure(); User::hydrate($storedProcedureRows)->first();
Error:
Called 'first' on Laravel collection, but could have been retrieved as a query.
The text was updated successfully, but these errors were encountered:
Model::hydrate()->first()
Daanra
Successfully merging a pull request may close this issue.
--level
used: 1Description
With the introduction of #538 , the Eloquent's
hydrate()
function cannot be chained with->first()
anymore.I can name multiple reasons why one would use
hydrate()
, such as:$object->getRawOriginal()
in order to utilize model castsLaravel code where the issue was found
Error:
The text was updated successfully, but these errors were encountered: