Skip to content

Commit 464a115

Browse files
authored
Merge pull request #382 from dmason30/master
Fix newBelongsToMany method compatibility
2 parents a2eea06 + 28bf06f commit 464a115

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Traits/ModelCaching.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use GeneaLabs\LaravelModelCaching\CachedBelongsToMany;
44
use GeneaLabs\LaravelModelCaching\CachedBuilder;
55
use GeneaLabs\LaravelModelCaching\EloquentBuilder;
6+
use Illuminate\Database\Eloquent\Builder;
67
use Illuminate\Database\Eloquent\Model;
78
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
89
use Illuminate\Support\Carbon;
@@ -108,7 +109,7 @@ public function newEloquentBuilder($query)
108109
}
109110

110111
protected function newBelongsToMany(
111-
EloquentBuilder $query,
112+
Builder $query,
112113
Model $parent,
113114
$table,
114115
$foreignPivotKey,

0 commit comments

Comments
 (0)