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
to_array() doesn't seem to work when using get() method for a model, since it returns an array of objects, get_one() however works.
ErrorException [ Error ]: Call to a member function to_array() on a non-object
The text was updated successfully, but these errors were encountered:
to_array() turns a model into an array which can be chained after get_one().
to_array()
get_one()
get() however returns an array and not a model instance, thus chaining to_array() on array output will give you that error.
get()
Sorry, something went wrong.
No branches or pull requests
to_array() doesn't seem to work when using get() method for a model, since it returns an array of objects, get_one() however works.
The text was updated successfully, but these errors were encountered: