src/Conductors/Concerns/AssociatesAbilities.php
protected function getAbilityIdsAssociatedWithEveryone(array $abilityIds, $forbidden)
    {
        $query = Models::query('permissions')
            ->whereNull('entity_id')
            ->whereIn('ability_id', $abilityIds)
            ->where('forbidden', '=', $forbidden);

        Models::scope()->applyToRelationQuery($query, $query->from);

        return Arr::pluck($query->get(['ability_id']), 'ability_id');
    }
protected function getAbilityIdsAssociatedWithEveryone(array $abilityIds, $forbidden)
    {
        $query = Models::query('permissions')
            ->whereNull('entity_id')
            ->whereIn('ability_id', $abilityIds)
            ->where('forbidden', '=', $forbidden);

        Models::scope()->applyToRelationQuery($query, $query->from);

        return Arr::pluck($query->get(['ability_id']), 'ability_id');
    }
protected function getAbilityIdsAssociatedWithEveryone ( array $ abilityIds , $ forbidden ) { $ query = Models :: query ( 'permissions' ) -> whereNull ( 'entity_id' ) -> whereIn ( 'ability_id' , $ abilityIds ) -> where ( 'forbidden' , '=' , $ forbidden ) ; Models :: scope ( ) -> applyToRelationQuery ( $ query , $ query -> from ) ; return Arr :: pluck ( $ query -> get ( [ 'ability_id' ] ) , 'ability_id' ) ; }
Get the IDs of the abilities associated with everyone.

@param  array  $abilityIds
@param  bool  $forbidden
@return array
Get the IDs of the abilities associated with everyone .