src/Database/Concerns/IsRole.php
public function getRoleKeys($roles)
    {
        $roles = Helpers::groupModelsAndIdentifiersByType($roles);

        $roles['strings'] = $this->getKeysByName($roles['strings']);

        $roles['models'] = Arr::pluck($roles['models'], $this->getKeyName());

        return Arr::collapse($roles);
    }
public function getRoleKeys($roles)
    {
        $roles = Helpers::groupModelsAndIdentifiersByType($roles);

        $roles['strings'] = $this->getKeysByName($roles['strings']);

        $roles['models'] = Arr::pluck($roles['models'], $this->getKeyName());

        return Arr::collapse($roles);
    }
public function getRoleKeys ( $ roles ) { $ roles = Helpers :: groupModelsAndIdentifiersByType ( $ roles ) ; $ roles [ 'strings' ] = $ this -> getKeysByName ( $ roles [ 'strings' ] ) ; $ roles [ 'models' ] = Arr :: pluck ( $ roles [ 'models' ] , $ this -> getKeyName ( ) ) ; return Arr :: collapse ( $ roles ) ; }
Get the IDs of the given roles.

@param  iterable  $roles
@return array
Get the IDs of the given roles .