Skip to content

Commit 0afe08e

Browse files
authored
Merge pull request #30 from Weebly/new-pivot-query-public
[Laravel 6] Make newPivotQuery() method public to match parent.
2 parents b96b860 + 12dfeb5 commit 0afe08e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"keywords": ["laravel", "eloquent", "uuid", "encrypt", "database"],
77
"require": {
88
"ramsey/uuid": "~3.0",
9-
"illuminate/database": ">=5.0 <7.0.0",
10-
"illuminate/support": ">=5.0 <7.0.0",
11-
"illuminate/encryption": ">=5.0 <7.0.0"
9+
"illuminate/database": "^6.0",
10+
"illuminate/support": "^6.0",
11+
"illuminate/encryption": "^6.0"
1212
},
1313
"require-dev": {
1414
"mockery/mockery": "^1.0",

src/Database/Eloquent/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function baseAttachRecord($id, $timed)
119119
*
120120
* @return \Illuminate\Database\Query\Builder
121121
*/
122-
protected function newPivotQuery()
122+
public function newPivotQuery()
123123
{
124124
$query = $this->newPivotStatement();
125125

0 commit comments

Comments
 (0)