use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Ultraware\Roles\Traits\HasRoleAndPermission;
use Ultraware\Roles\Contracts\HasRoleAndPermission as HasRoleAndPermissionContract;
class User extends Model implements HasRoleAndPermissionContract
{
use HasRoleAndPermission;
``
提示我Trying to get property of non-object in file D:\WampDemo\XC\vendor\bican\roles\src\Bican\Roles\Traits\HasRoleAndPermission.php on line 104 。我的$user是存在的,也是object类型的啊,为什么会出错