zareismail / nova-trust

An nova acl package based on laratrust laravel package
MIT License
5 stars 4 forks source link

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

Open ejntaylor opened 4 years ago

ejntaylor commented 4 years ago

If my traits for User.php are:

use \Staudenmeir\EloquentHasManyDeep\HasRelationships, LaratrustUserTrait, \NovaTrust\Concerns\InteractsWithNovaTrust, Notifiable, SoftDeletes, \Spatie\Tags\HasTags;

then I get:

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

If I remove 'LaratrustUserTrait ' like this:

use \Staudenmeir\EloquentHasManyDeep\HasRelationships, \NovaTrust\Concerns\InteractsWithNovaTrust, Notifiable, SoftDeletes, \Spatie\Tags\HasTags;

Then I get:

502 Bad Gateway from Nova but works on front-end

Issue was experienced when I updated the package (with PR) to work with v.7 of Laravel: https://github.com/zareismail/nova-trust/pull/6

muhammadsaeedparacha commented 4 years ago

Following