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
Running into an oddity with larastan, which reports this:
Access to an undefined property Illuminate\Database\Eloquent\Collection|Illuminate\Database\Eloquent\Model::$id.
when calling the function findBySlugOrFail
findBySlugOrFail
this function has a docblock which says it can return a collection:
@return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
however, I don't believe this is capable of returning a collection due to underlying call only returning an instance of a model or throwing:
return static::whereSlug($slug)->firstOrFail($columns);
The text was updated successfully, but these errors were encountered:
a774e4b
Thanks! Fixed this and it'll go out in the next release.
Sorry, something went wrong.
No branches or pull requests
Running into an oddity with larastan, which reports this:
when calling the function
findBySlugOrFail
this function has a docblock which says it can return a collection:
however, I don't believe this is capable of returning a collection due to underlying call only returning an instance of a model or throwing:
The text was updated successfully, but these errors were encountered: