We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b02b1c commit 2bfc7f0Copy full SHA for 2bfc7f0
README.md
@@ -157,8 +157,8 @@ There are two methods by which model-caching can be disabled:
157
3. If you only need to disable the cache for a block of code, or for non-
158
eloquent queries, this is probably the better option:
159
```php
160
- app("model-cache")->runDisabled(function () {
161
- // your code here, it may return, as well
+ $result = app("model-cache")->runDisabled(function () {
+ return (new MyModel)->get(); // or any other stuff you need to run with model-caching disabled
162
});
163
```
164
0 commit comments