/** * Add a new namespace to the loader. * @param string $namespace * @param string $hint * @return void */ public function addNamespace($namespace, $hint) { parent::addNamespace($namespace, $hint); $namespaceAppPath = app_path() . '/config/' . str_replace('.', '/', $namespace); $this->appRepository->addNamespace($namespace, $namespaceAppPath); }
/** * Add a new namespace to the loader. * * @param string $namespace * @param string $hint * @return void * @static */ public static function addNamespace($namespace, $hint) { \Illuminate\Config\Repository::addNamespace($namespace, $hint); }
/** * Register Config Namespace * * Adds a namespace to the 'Config' instance for use with the double colon. * * @return void */ protected function registerConfigNamespace() { $this->configManager->package(strtolower($this->name), $this->directory, strtolower($this->name)); $this->configManager->addNamespace(strtolower($this->name), $this->directory . '/config'); }