Skip to content

Commit ff303d7

Browse files
authored
Merge pull request #417 from joshuadwire/master
Fix uncacheable relationships being cached
2 parents efaeb5f + 4cdc411 commit ff303d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Caching.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function isCachable() : bool
291291
->eagerLoad)
292292
->keys()
293293
->reduce(function ($carry, $related) {
294-
if (! method_exists($this, $related)
294+
if (! method_exists($this->model, $related)
295295
|| $carry === false
296296
) {
297297
return $carry;

0 commit comments

Comments
 (0)