Get the paths to publish.

@param  string  $provider
@param  string  $group
@return array
764621
public static function pathsToPublishAdmin($provider = null, $group = null)
	{
		if ($group && array_key_exists($group, static::$publishGroupsAdmin))
		{
			return static::$publishGroupsAdmin[$group];
		}

		if ($provider && array_key_exists($provider, static::$publishesAdmin))
		{
			return static::$publishesAdmin[$provider];
		}

		if ($group || $provider)
		{
			return [];
		}

		$paths = [];

		foreach (static::$publishesAdmin as $class => $publish)
		{
			$paths = array_merge($paths, $publish);
		}

		return $paths;
	}
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;
    }
1016478
public function getAdminsByGroup($group)
    {
        if (!isset($this->adminGroups[$group])) {
            throw new \InvalidArgumentException(sprintf('Group "%s" not found in admin pool.', $group));
        }

        $admins = [];

        if (!isset($this->adminGroups[$group]['items'])) {
            return $admins;
        }

        foreach ($this->adminGroups[$group]['items'] as $item) {
            $admins[] = $this->getInstance($item['admin']);
        }

        return $admins;
    }
658916
protected function publishes(array $paths, $groups = null)
    {
        $this->ensurePublishArrayInitialized($class = static::class);

        static::$publishes[$class] = array_merge(static::$publishes[$class], $paths);

        if (! is_null($groups)) {
            foreach ((array) $groups as $group) {
                $this->addPublishGroup($group, $paths);
            }
        }
    }
909577
public function load($mode, $group, $namespace = null)
    {
        // Lets find where the paths are
        $paths = $this->getPaths($namespace);

        if (empty($paths)) return [];

        return $this->findInPaths($paths, $group, $mode);
    }
579863
public function getSitesFromGroup($group)
    {
        $db = $this->getDb();
        $sites = $db->fetchAll("SELECT * FROM " . $this->table . "
                                WHERE `group` = ?", $group);

        return $sites;
    }
959723
protected function loadPath($path, $locale, $group)
    {
        $result = [];
        foreach ($this->paths as $path) {
            $result = array_merge($result, parent::loadPath($path, $locale, $group));
        }

        return $result;
    }
1222533
public function group($prefix, callable $group)
    {
        return $this->getRouter()->group($prefix, $this->bindClosureToInstance($group, $this));
    }
764548
public function getUserGroupCharacters(Group $group = null): Collection
    {

        if (! $group)
            return collect();

        return Group::with('users')->find($group->id)->users;
    }
805873
public function getDevelopmentAssets($group = null)
    {
        return is_null($group) ? $this->development : $this->development[$group];
    }
626423
public function getSitesFromGroup($group = '')
    {
        Piwik::checkUserHasSuperUserAccess();

        $group = trim($group);
        $sites = $this->getModel()->getSitesFromGroup($group);

        foreach ($sites as &$site) {
            $this->enrichSite($site);
        }

        $sites = Site::setSitesFromArray($sites);
        return $sites;
    }
1106582
protected function publishGroups()
    {
        // Config files
        $this->publishes([
            __DIR__.'/../config/providers/nodes.php'        => config_path('nodes/assets/providers/nodes.php'),
            __DIR__.'/../config/providers/publicFolder.php' => config_path('nodes/assets/providers/publicFolder.php'),
            __DIR__.'/../config/general.php'                => config_path('nodes/assets/general.php'),
        ], 'config');

        // Route files
        $this->publishes([
            __DIR__.'/../routes' => base_path('project/Routes/Frontend'),
        ], 'routes');
    }
167422
public function getVariables($group)
    {
        $encodedValues = $this->getEnvironmentVariable($group);

        if ($encodedValues === null) {
            return null;
        }

        return $this->decode($encodedValues);
    }
367993
protected function group($group)
    {
        return $this->dispatcher->run($group, $this->assets, $this->path);
    }
473697
protected function getSettingsByGroup($group)
    {
        $result = array();
        foreach ($this->getKeyInfo() as $key => $keyInfo) {
            if ($keyInfo['group'] === $group) {
                $result[$key] = $this->get($key);
            }
        }
        return $result;
    }
760163
protected function publishes(array $paths, $group = null)
	{
		$class = get_class($this);

		if ( ! array_key_exists($class, static::$publishes))
		{
			static::$publishes[$class] = [];
		}

		static::$publishes[$class] = array_merge(static::$publishes[$class], $paths);

		if ($group)
		{
			static::$publishGroups[$group] = $paths;
		}
	}
424308
protected function publishes(array $paths, $group)
    {
        if (! array_key_exists($group, static::$publishes)) {
            static::$publishes[$group] = array();
        }

        static::$publishes[$group] = array_merge(static::$publishes[$group], $paths);
    }