protected function getHint()
    {
        // Map a new array with [group => namespace].
        $groups = collect(config('flame'))->mapWithKeys(function ($item, $key) {
            return [$key => $item['namespace']];
        });

        //Map a new array only with namespaces.
        $namespaces = $groups->values();

        //Get the namespace that longest matches the controller namespace.
        $matchedNamespace = Str::longestMatch($namespaces->toArray(), $this->controllerNamespace());

        // Cannot continue if no namespace was found for the View hint.
        if (is_null($matchedNamespace)) {
            throw FlameException::namespaceNotFound($this->controllerNamespace());
        }

        return $groups->flip()[$matchedNamespace];
    }