protected function collectDevAliases($configKey)
    {
        // Get the Config key where dev aliases are located.
        $devAliasesConfigLocation = Config::get($configKey);

        // Get Aliases keys.
        $keys = is_string($devAliasesConfigLocation) ? [$devAliasesConfigLocation] : $devAliasesConfigLocation;

        return collect($keys)->transform(function ($location) {
            // Transform each Location key to the actual array
            // containing the Aliases.
            return Config::get($location);
        })->reject(function ($arrayOfProviders) {
            // Remove all null values
            return is_null($arrayOfProviders);
        })->flatMap(function ($values) {
            return $values;
        })->unique();
    }