Skip to content
New issue

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

[6.x] Make newPivotQuery public #31677

Merged
merged 3 commits into from
Mar 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make newPivotQuery public
  • Loading branch information
krychu90 authored Mar 2, 2020
commit 977a1fd7cf1237363d9c7cce7626d9d34f780098
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery,
*
* @return \Illuminate\Database\Query\Builder
*/
protected function newPivotQuery()
public function newPivotQuery()
{
return parent::newPivotQuery()->where($this->morphType, $this->morphClass);
}
Expand Down