Return CSS\JS.

@param null $key

@return array|\Illuminate\Support\Collection|mixed
351048
public function getResource($key = null)
    {
        if (is_null($key)) {
            return $this->resources;
        }

        return $this->resources->get($key);
    }
1145460
protected function getFlagConfiguration($key = null)
    {
        if (null !== $key) {
            $result = (isset($this->flagConfiguration[$key])) ? $this->flagConfiguration[$key] : null;

        } else {
            $result = $this->flagConfiguration;
        }

        return $result;
    }
320952
public function getWebspace($key)
    {
        return array_key_exists($key, $this->webspaces) ? $this->webspaces[$key] : null;
    }
430809
public function getConfiguration($key = null)
    {
        return isset($this->_args[ $key ]) ? $this->_args[ $key ] : null;
    }
1248433
public static function get( $key = null ) {
		$configs = self::$configs;
		if ( $key ) {
			$configs = ! empty( self::$configs[ $key ] ) ? self::$configs[ $key ] : null;
		} else {
			$configs = self::$configs;
		}

		return $configs;
	}
1329906
public function getWebhookUrls(string $key = null)
    {
        return $key
            ? $this->webhookUrls[$key] ?? null
            : $this->webhookUrls;
    }
845100
public function getAsText($key = null) {
		if ($key === null) {
			$data = $this->data;
		} else {
			if (is_object($this->data) && isset($this->data->{$key})) {
				$data = $this->data->{$key};
			} elseif (is_array($this->data) && isset($this->data[$key])) {
				$data = $this->data[$key];
			} else {
				$data = null;
			}
		}

		return $this->getText($data, $this->title);
	}
1019512
public function getTemplate($key)
    {
        if (isset($this->templates[$key])) {
            return $this->templates[$key];
        }
        return null;
    }
671481
public function getMessages($key = null)
    {
        if (null !== $key) {
            return $this->flash->getMessage($key);
        }

        return $this->flash->getMessages();
    }
12555
public static function getCoordinateMap($key=NULL)
    {
        if ($key) {
            return isset(self::$_keyCoordinateMap[$key]) ? self::$_keyCoordinateMap[$key] : NULL;
        } else {
            return self::$_keyCoordinateMap;
        }
    }
595347
public function getClosure($key)
    {
        if (!isset($this->serviceCollection[$key])) return null;

        return $this->serviceCollection[$key];
    }
1157099
public function pluck(string $key): ArrayCollection
    {
        return $this->map(function ($value) use ($key) {
            return $value[$key] ?? null;
        });
    }
722809
public static function getRowMap($key=NULL)
    {
        if ($key) {
            return isset(self::$_keyRowMap[$key]) ? self::$_keyRowMap[$key] : NULL;
        } else {
            return self::$_keyRowMap;
        }
    }
247632
public function pluck($key) : Collection
    {
        return $this->map(function ($v) use ($key) {
            return is_object($v) ?
                (isset($v->{$key}) ? $v->{$key} : null) :
                (isset($v[$key]) ? $v[$key] : null);
        });
    }
496689
public static function getAssetUrl($key)
  {
    $root =  __DIR__
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'..'
      . DIRECTORY_SEPARATOR .'assets/';
    switch ($key) {
      case 'htaccess':
        return $root . 'templates/htaccess.tpl';
      case 'read':
        return $root . 'templates/read.php.tpl';
    }
    return null;
  }
998599
protected function composer($key = null)
    {
        if (! $this->composerJson) {
            $composerFile = $this->realPath().'/composer.json';
            if (! file_exists($composerFile)) {
                return null;
            }
            $this->composerJson = json_decode(file_get_contents($composerFile), true);
        }

        return $key ? array_get($this->composerJson, $key) : $this->composerJson;
    }
43086
public function getSortableKey($key = null)
    {
        if ( ! is_null($key))
        {
            return $this->determineSortableKey($key);
        }

        return $this->getDefaultSortableKey();
    }