Closed
Description
Issue
I have a model, Userwhich extends CachedModel:
class User extends CachedModel
{
}
Same model use Traits like Notifiable, Sluggable and CanFollow from package laravel-follow
class User extends CachedModel
{
use Notifiable, Sluggable, CanFollow, CanBeFollowed, CanLike, CanFavorite, CanSubscribe, EntrustUserTrait;
/**
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.
>php artisan db:seed --class=LikesFollowersSeeder
In Builder.php line 2459:
Call to undefined method Illuminate\Database\Query\Builder::subscribe()
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
Metadata
Metadata
Assignees
Labels
No labels