Get the paths for the provider and group.

@param  string  $provider
@param  string  $group
@return array
511984
protected static function pathsForProviderAndGroup($provider, $group)
    {
        if (! empty(static::$publishes[$provider]) && ! empty(static::$publishGroups[$group])) {
            return array_intersect_key(static::$publishes[$provider], static::$publishGroups[$group]);
        }

        return [];
    }
524418
public function retrieveGroup($group)
    {
        $result = array();

        foreach (Profiler::$_samples as $record) {
            if ($record[3] == $group) {
                $result[] = $record;
            }
        }

        return $result;
    }
749428
public function getPaths($group = '__DEFAULT__')
	{
		if ( ! isset($this->paths[$group]))
		{
			return [];
		}

		return array_values($this->paths[$group]);
	}
764548
public function getUserGroupCharacters(Group $group = null): Collection
    {

        if (! $group)
            return collect();

        return Group::with('users')->find($group->id)->users;
    }
617409
public function getResourcePaths($domain = null) {
        return isset($this->_paths[$domain]) ? $this->_paths[$domain] : $this->_paths;
    }
1222533
public function group($prefix, callable $group)
    {
        return $this->getRouter()->group($prefix, $this->bindClosureToInstance($group, $this));
    }
1014094
public function get(string $group, string $key)
    {
        return $this->values[$group][$key] ?? null;
    }
885059
public function decodeAspiringTranslatorsGroup(Group $group)
    {
        $result = null;
        $match = null;
        if (preg_match('/^\/' . preg_quote(self::GROUPNAME_ASPIRING_TRANSLATORS, '/') . '\/(.+)$/', $group->getGroupPath(), $match)) {
            $result = $this->app->make(LocaleRepository::class)->findApproved($match[1]);
        }

        return $result;
    }
1355557
public function getConfigFilename($group)
    {
        $conf_files = $this->config->get('conf_files');
        if (!isset($conf_files[$group])) {
            $filename = $this->config['conf_dir'] . '/' . $group . '.json';
            $conf_files[$group] = $filename;
        }
        $this->config->set('conf_files', $conf_files);
        return $conf_files[$group];
    }
489385
public function get_roles($group = null)
	{
		// When group is empty, attempt to get groups from a current login
		if ($group === null)
		{
			if ($login = \Auth::instance()
				and is_array($groups = $login->get_groups())
				and isset($groups[0][1]))
			{
				$group = $groups[0][1];
			}
		}

		// if it's a group id, find the corresponding object
		elseif (is_numeric($group) and isset(static::$_valid_groups[$group]))
		{
			$group = static::$_valid_groups[$group];
		}

		// if the group was found, return the roles
		if ($group instanceOf Model\Auth_Group)
		{
			return $group->roles;
		}
		else
		{
			// no group found, so no roles either
			return array();
		}
	}
359198
protected function loadPath($path, $locale, $group)
    {
        $result = parent::loadPath($path, $locale, $group);

        if (empty($result) && str_contains($locale, '-')) {
            return parent::loadPath($path, strstr($locale, '-', true), $group);
        }

        return $result;
    }
268625
public function all($group = null) {
        if(! is_null($group))
            return $this->model->where('group', $group)->lists('value', 'key');

        return $this->model->lists('value', 'key');
    }
1181757
protected function resolveGroup($group)
    {
        if (is_string($group)) {
            $group = Group::whereHandle($group)->firstOrFail();
        }

        return $group;
    }
1309870
public function loginUser($provider)
    {
        $this->getProviderDetails($provider);

        $socialUser = $this->getSocialUser();

        // Allow any checks before creating/updating the user.
        event(new UserLoggingIn($socialUser));
        
        $user = $this->getUser($socialUser);

        // Update or create provider details.
        $this->updateFromProvider($user, $socialUser);

        // Log the user in.
        auth()->login($user, request('remember', false));
        $user->updateLogin($this->provider->driver);
        event(new UserLoggedIn($user, $socialUser));

        return [
            $user,
            $socialUser,
        ];
    }
1155537
protected function getEnvironmentEndpoint(?string $group = null): ?string
    {
        $environment = $this->getEnvironment();

        if (\is_null($group) || empty($group)) {
            return static::$endpoints[$environment];
        }

        return static::$endpoints[$environment][$group] ?? null;
    }
168112
public function getAllPermissionPathsForGroup($groupId)
    {
        $groupPermissions = $this->find('all')
            ->select('path')
            ->where(['group_id' => $groupId])
            ->hydrate(false)
            ->toArray();

        return Hash::extract($groupPermissions, '{n}.path');
    }
359993
public function getGroup($groupId)
    {
        static $groups = array();

        if (! isset($groups[$groupId])) {
            $groups[$groupId] = $this->_loadClass('Group', true, array($groupId));
    }

        return $groups[$groupId];
    }