/** * Add Ldap fields to current user model. * * @param UserContract $model * @param adLDAP\collection\adLDAPCollection $ldap * * @return UserContract */ protected function addLdapToModel($model, $ldap) { $combined = $ldap + $model->getAttributes(); return $model->fill($combined); }