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

        $roles['integers'] = $this->getNamesByKey($roles['integers']);

        $roles['models'] = Arr::pluck($roles['models'], 'name');

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

        $roles['integers'] = $this->getNamesByKey($roles['integers']);

        $roles['models'] = Arr::pluck($roles['models'], 'name');

        return Arr::collapse($roles);
    }
public function getRoleNames ( $ roles ) { $ roles = Helpers :: groupModelsAndIdentifiersByType ( $ roles ) ; $ roles [ 'integers' ] = $ this -> getNamesByKey ( $ roles [ 'integers' ] ) ; $ roles [ 'models' ] = Arr :: pluck ( $ roles [ 'models' ] , 'name' ) ; return Arr :: collapse ( $ roles ) ; }
Get the names of the given roles.

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