Trait method restore has not been applied, because there are collisions with other trait methods on App\User

This happens because entrust and softdeletes both have a method called “restore”.

use SoftDeletes { restore as private restore_user; }
use EntrustUserTrait { restore as private restore_acl; }
public function restore()
    {
        $this->restore_user();
        $this->restore_acl();
    }

Reference: https://laravel-china.org/topics/1775/resolve-entrust-trait-conflicts

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.