src/Traits/HasRoles.php
public function hasRoleWithPermission($permission)
    {
        return $this->roles->contains(function ($role) use ($permission) {
            return $role->getPermissions->contains('permission_slug', $permission);
        });
    }
public function hasRoleWithPermission($permission)
    {
        return $this->roles->contains(function ($role) use ($permission) {
            return $role->getPermissions->contains('permission_slug', $permission);
        });
    }
Determine if any of the assigned roles to this user
have a specific permission

@param string $permission
@return boolean