Repositories/Menu/MenuBuilder.php
public function getItemProviders()
    {
        foreach ($this->modules->enabled() as $module) {
            $name = studly_case($module->getName());
            $class = 'Modules\\'.$name.'\\MenuExtenders\\MenuExtender';

            if (class_exists($class)) {
                $extender = $this->container->make($class);
                $this->extenders->put($module->getName(), [
                    'content' => $extender->getContentItems(),
                    'static'  => $extender->getStaticItems(),
                ]);
            }
        }

        return $this->extenders;
    }
public function getItemProviders()
    {
        foreach ($this->modules->enabled() as $module) {
            $name = studly_case($module->getName());
            $class = 'Modules\\'.$name.'\\MenuExtenders\\MenuExtender';

            if (class_exists($class)) {
                $extender = $this->container->make($class);
                $this->extenders->put($module->getName(), [
                    'content' => $extender->getContentItems(),
                    'static'  => $extender->getStaticItems(),
                ]);
            }
        }

        return $this->extenders;
    }
public function getItemProviders ( ) { foreach ( $ this -> modules -> enabled ( ) as $ module ) { $ name = studly_case ( $ module -> getName ( ) ) ; $ class = 'Modules\\' . $ name . '\\MenuExtenders\\MenuExtender' ; if ( class_exists ( $ class ) ) { $ extender = $ this -> container -> make ( $ class ) ; $ this -> extenders -> put ( $ module -> getName ( ) , [ 'content' => $ extender -> getContentItems ( ) , 'static' => $ extender -> getStaticItems ( ) , ] ) ; } } return $ this -> extenders ; }
Build the menu structure.

@return mixed
Build the menu structure .