Skip to content

Commit b0dccf8

Browse files
authored
Add user model exception description
1 parent a808e61 commit b0dccf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ abstract class BaseModel extends CachedModel
5050
}
5151
```
5252

53+
### Exception: User Model
54+
I would not recommend caching the user model, as it is a special case, since it
55+
extends `Illuminate\Foundation\Auth\User`. Overriding that would break functionality.
56+
Not only that, but it probably isn't a good idea to cache the user model anyway,
57+
since you always want to pull the most up-to-date info on it.
58+
5359
### Disabling Caching of Queries
5460
**Recommendation: add this to all your seeder queries to avoid pulling in
5561
cached information when reseeding multiple times.**

0 commit comments

Comments
 (0)