Here in my code i have used ZizacoEntrust package for authentication. And following ACL tutorial step by step When i`m trying to run code, in browser it shows error like in picture
Error Message: "Trait method roles has not been applied, because there are collisions with other trait methods on App\User"
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Zizaco\Entrust\Traits\EntrustUserTrait;
use Laravel\Passport\HasApiTokens;
use Spatie\Permission\Traits\HasRoles;
class User extends Authenticatable
{
use HasApiTokens, Notifiable;
use EntrustUserTrait;
use HasRoles;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email', 'password',
];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
}
I don`t know what exactly happening here. In tutorial used - Spatie, for some moments i used to use zizaco. nothing additional.