Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 83b2619

Browse files
daika7anamikebronner
andauthored
Fixes query attribute not existing under strict mode (#465)
* Fixes `query` attribute not existing under strict mode * Update ModelCaching.php Signed-off-by: Mike Bronner <mike@genealabs.com> --------- Signed-off-by: Mike Bronner <mike@genealabs.com> Co-authored-by: Mike Bronner <mike@genealabs.com>
1 parent 5c67470 commit 83b2619

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/Traits/ModelCaching.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ public function __get($key)
2222
?? 0;
2323
}
2424

25+
if ($key === "query") {
26+
return $this->query
27+
?? $this->newModelQuery();
28+
}
29+
2530
return parent::__get($key);
2631
}
2732

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /