src/Database/Concerns/IsRole.php
public function getKeysByName($names)
    {
        if (empty($names)) {
            return [];
        }

        return $this->whereIn('name', $names)
                    ->select($this->getKeyName())->get()
                    ->pluck($this->getKeyName())->all();
    }
public function getKeysByName($names)
    {
        if (empty($names)) {
            return [];
        }

        return $this->whereIn('name', $names)
                    ->select($this->getKeyName())->get()
                    ->pluck($this->getKeyName())->all();
    }
public function getKeysByName ( $ names ) { if ( empty ( $ names ) ) { return [ ] ; } return $ this -> whereIn ( 'name' , $ names ) -> select ( $ this -> getKeyName ( ) ) -> get ( ) -> pluck ( $ this -> getKeyName ( ) ) -> all ( ) ; }
Get the keys of the roles with the given names.

@param  iterable  $names
@return array
Get the keys of the roles with the given names .