private function resolveFactionIDs(Collection $ids)
    {

        // universe resolver is not working on factions at this time
        // retrieve them from SDE and remove them from collection
        $names = UniverseName::whereIn('entity_id', $ids->flatten()->toArray())
            ->get()
            ->map(function ($entity) {
                return collect([
                    'id'       => $entity->entity_id,
                    'name'     => $entity->name,
                    'category' => $entity->category,
                ]);
            });

        return $this->cacheIDsAndReturnUnresolvedIDs($names, $ids);
    }
private function resolveFactionIDs(Collection $ids)
    {

        // universe resolver is not working on factions at this time
        // retrieve them from SDE and remove them from collection
        $names = UniverseName::whereIn('entity_id', $ids->flatten()->toArray())
            ->get()
            ->map(function ($entity) {
                return collect([
                    'id'       => $entity->entity_id,
                    'name'     => $entity->name,
                    'category' => $entity->category,
                ]);
            });

        return $this->cacheIDsAndReturnUnresolvedIDs($names, $ids);
    }
private function resolveFactionIDs ( Collection $ ids ) { // universe resolver is not working on factions at this time // retrieve them from SDE and remove them from collection $ names = UniverseName :: whereIn ( 'entity_id' , $ ids -> flatten ( ) -> toArray ( ) ) -> get ( ) -> map ( function ( $ entity ) { return collect ( [ 'id' => $ entity -> entity_id , 'name' => $ entity -> name , 'category' => $ entity -> category , ] ) ; } ) ; return $ this -> cacheIDsAndReturnUnresolvedIDs ( $ names , $ ids ) ; }
Resolve received sets of ids with the help of chrFactions table
map the resolved names, cache the results and return unresolved ids.

@param \Illuminate\Support\Collection $ids
@return \Illuminate\Support\Collection collection of ids that were unable to be resolved within this function
Resolve received sets of ids with the help of chrFactions table map the resolved names cache the results and return unresolved ids .