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
'!='
As described in detail here: http://stackoverflow.com/questions/36856090/counting-models-related-through-manytomany-only-if-a-pivot-attribute-null-lara
The wherePivot would not accept '!=' operator.
wherePivot
This code produces a collection:
`public function activities() { return $this->belongsToMany('App\Models\Activity')->withPivot('done_at')->wherePivot('done_at','=',null); }`
while this
`public function activitiesOnlyDone() { return $this->belongsToMany('App\Models\Activity')->withPivot('done_at')->wherePivot('done_at','!=',null); }`
throws Illegal operator error.
Illegal operator
The text was updated successfully, but these errors were encountered:
ebcaba3
No branches or pull requests
As described in detail here:
http://stackoverflow.com/questions/36856090/counting-models-related-through-manytomany-only-if-a-pivot-attribute-null-lara
The
wherePivot
would not accept'!='
operator.This code produces a collection:
while this
throws
Illegal operator
error.The text was updated successfully, but these errors were encountered: