public function load()
    {
        // Make the $menu variable available to all files
        $menu = app('menu');

        // Include menu files
        $files = $this->getFiles();

        /** @var \SplFileInfo $file */
        foreach ($files as $file) {
            require_once $file->getPath() . '/' . $file->getFilename();
        }
    }
public function load()
    {
        // Make the $menu variable available to all files
        $menu = app('menu');

        // Include menu files
        $files = $this->getFiles();

        /** @var \SplFileInfo $file */
        foreach ($files as $file) {
            require_once $file->getPath() . '/' . $file->getFilename();
        }
    }
public function load ( ) { // Make the $menu variable available to all files $ menu = app ( 'menu' ) ; // Include menu files $ files = $ this -> getFiles ( ) ; /** @var \SplFileInfo $file */ foreach ( $ files as $ file ) { require_once $ file -> getPath ( ) . '/' . $ file -> getFilename ( ) ; } }
Load menus.

@throws DirectoryNotFound
@throws MenuFilesNotFound
Load menus .