src/Conductors/RemovesRoles.php
protected function getRoleIdsFromNames(array $names)
    {
        $key = Models::role()->getKeyName();

        return Models::role()
                     ->whereIn('name', $names)
                     ->get([$key])
                     ->pluck($key);
    }
protected function getRoleIdsFromNames(array $names)
    {
        $key = Models::role()->getKeyName();

        return Models::role()
                     ->whereIn('name', $names)
                     ->get([$key])
                     ->pluck($key);
    }
protected function getRoleIdsFromNames ( array $ names ) { $ key = Models :: role ( ) -> getKeyName ( ) ; return Models :: role ( ) -> whereIn ( 'name' , $ names ) -> get ( [ $ key ] ) -> pluck ( $ key ) ; }
Get the IDs of the roles with the given names.

@param  string[]  $names
@return \Illuminate\Database\Eloquent\Collection
Get the IDs of the roles with the given names .