public function register()
	{
		$namespace = $this->package->getNamespace();
		$config = $this->app->make('config');

		try
		{
			$path = $this->getPath() . '/config.php';
			if($this->app->environment() === 'testing') {
				if( ! $this->filesystem->exists($path)) {
					return $config->set([
						$namespace => $this->getOptions()
					]);
				}
			}
			return $config->set([
				$namespace => include($path)
			]);
		} catch(\Exception $e) {
			$msg = "You need to publish the configs for the package {$this->package->getName()}";
			$this->error(new PackageConfigMissing($msg));
		}
	}
public function register()
	{
		$namespace = $this->package->getNamespace();
		$config = $this->app->make('config');

		try
		{
			$path = $this->getPath() . '/config.php';
			if($this->app->environment() === 'testing') {
				if( ! $this->filesystem->exists($path)) {
					return $config->set([
						$namespace => $this->getOptions()
					]);
				}
			}
			return $config->set([
				$namespace => include($path)
			]);
		} catch(\Exception $e) {
			$msg = "You need to publish the configs for the package {$this->package->getName()}";
			$this->error(new PackageConfigMissing($msg));
		}
	}
public function register ( ) { $ namespace = $ this -> package -> getNamespace ( ) ; $ config = $ this -> app -> make ( 'config' ) ; try { $ path = $ this -> getPath ( ) . '/config.php' ; if ( $ this -> app -> environment ( ) === 'testing' ) { if ( ! $ this -> filesystem -> exists ( $ path ) ) { return $ config -> set ( [ $ namespace => $ this -> getOptions ( ) ] ) ; } } return $ config -> set ( [ $ namespace => include ( $ path ) ] ) ; } catch ( \ Exception $ e ) { $ msg = "You need to publish the configs for the package {$this->package->getName()}" ; $ this -> error ( new PackageConfigMissing ( $ msg ) ) ; } }
Register the resources if needed

@return String
Register the resources if needed