src/Conductors/RemovesRoles.php
protected function getRoleIds()
    {
        list($models, $names) = Helpers::partition($this->roles, function ($role) {
            return $role instanceof Model;
        });

        $ids = $models->map(function ($model) {
            return $model->getKey();
        });

        if ($names->count()) {
            $ids = $ids->merge($this->getRoleIdsFromNames($names->all()));
        }

        return $ids->all();
    }
protected function getRoleIds()
    {
        list($models, $names) = Helpers::partition($this->roles, function ($role) {
            return $role instanceof Model;
        });

        $ids = $models->map(function ($model) {
            return $model->getKey();
        });

        if ($names->count()) {
            $ids = $ids->merge($this->getRoleIdsFromNames($names->all()));
        }

        return $ids->all();
    }
protected function getRoleIds ( ) { list ( $ models , $ names ) = Helpers :: partition ( $ this -> roles , function ( $ role ) { return $ role instanceof Model ; } ) ; $ ids = $ models -> map ( function ( $ model ) { return $ model -> getKey ( ) ; } ) ; if ( $ names -> count ( ) ) { $ ids = $ ids -> merge ( $ this -> getRoleIdsFromNames ( $ names -> all ( ) ) ) ; } return $ ids -> all ( ) ; }
Get the IDs of anyexisting roles provided.

@return array
Get the IDs of anyexisting roles provided .