You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, the User model is a special case. I have not cached that model in my projects because of this, and because I always want the latest user data pulled from the database. It's probably not a good idea to cache the user model.
I will add some documentation for that, thanks for raising the issue! :)
Issue
I have a model, Userwhich extends CachedModel:
Same model use Traits like Notifiable, Sluggable and CanFollow from package laravel-follow
The problem is that when User odel extends CachedModel, User model cant access the traits. I just realized that when i re-seeded an ongoing proyect.
Environment
Laravel Version: 5.5.25
Laravel Model Caching Package Version: 0.2.12
PHP Version: 7.2.0
Homestead Version: N/A
Operating System & Version: Windows 10 64bits same on Ubuntu 16.04
The text was updated successfully, but these errors were encountered: