Skip to content

Commit fe19bd3

Browse files
authored
Update README.md
1 parent 5858800 commit fe19bd3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,9 @@ cache for that single query. Disabling cache via the config flag still works.
130130

131131
**Recommendation: use option #1 in all your seeder queries to avoid pulling in
132132
cached information when reseeding multiple times.**
133-
You can disable a given query by using `disableCache()` in the query chain, and
134-
it needs to be placed (anywhere) prior to the query command (`get()`, `all()`,
135-
`find()`, etc). For example:
133+
You can disable a given query by using `disableCache()` in the query chain. It must be placed immediately behind the model, and not in the query chain. For example:
136134
```php
137-
$results = $myModel->disableCache()->get();
135+
$results = $myModel->disableCache()->where('field', $value)->get();
138136
```
139137

140138
### Manual Flushing of Specific Model

0 commit comments

Comments
 (0)