Fix User::hasRoles() method to avoid duplicate roles. Because foreach doesn't work with Eloquent collections.