src/Conductors/Concerns/FindsAndCreatesAbilities.php
protected function getAbilityIdsFromMap(array $map, array $attributes)
    {
        list($map, $list) = Helpers::partition($map, function ($value, $key) {
            return ! is_int($key);
        });

        return $map->map(function ($entity, $ability) use ($attributes) {
            return $this->getAbilityIds($ability, $entity, $attributes);
        })->collapse()->merge($this->getAbilityIdsFromArray($list, $attributes))->all();
    }
protected function getAbilityIdsFromMap(array $map, array $attributes)
    {
        list($map, $list) = Helpers::partition($map, function ($value, $key) {
            return ! is_int($key);
        });

        return $map->map(function ($entity, $ability) use ($attributes) {
            return $this->getAbilityIds($ability, $entity, $attributes);
        })->collapse()->merge($this->getAbilityIdsFromArray($list, $attributes))->all();
    }
protected function getAbilityIdsFromMap ( array $ map , array $ attributes ) { list ( $ map , $ list ) = Helpers :: partition ( $ map , function ( $ value , $ key ) { return ! is_int ( $ key ) ; } ) ; return $ map -> map ( function ( $ entity , $ ability ) use ( $ attributes ) { return $ this -> getAbilityIds ( $ ability , $ entity , $ attributes ) ; } ) -> collapse ( ) -> merge ( $ this -> getAbilityIdsFromArray ( $ list , $ attributes ) ) -> all ( ) ; }
Get the ability IDs for the given map.

The map should use the ['ability-name' => Entity::class] format.

@param  array  $map
@param  array  $attributes
@return array
Get the ability IDs for the given map .