Documentation v8.1.9

Menu Configuration

The Laravel menu configuration is separated into 2 types which are global and demo level config. Both configs will be merged. The global menu can be found in the config folder config/global/menu.php. The menu items will be available for all demos in the future updates.

The demo config can be found in the config folder config/demo1/menu.php. The menu in this config will be specifically available for current selected demo.

The global menu contains documentation menu items as example below.

return array(
    // Documentation menu
    'documentation' => array(...),
);

The demo menu is divided into 2 types main and horizontal as example below.

return array(
    // Main menu
    'main'       => array(...),

    // Horizontal menu
    'horizontal' => array(...),
);

title will display in the menu item text and the path will be link. The path will be registered in Laravel route.

array(
    'title' => 'Build',
    'path'  => 'documentation/getting-started/build',
),

Each menu item added to the config/demo1/menu.php, must a page config registered with it. The pages config can be found in config/demo1/pages.php. Below is an example for the page documentation/getting-started/build.

'documentation' => array(
    'getting-started' => array(
        'build' => array(
            'title'       => 'Build',
            'description' => '',
            'view'        => 'documentation/getting-started/build',
        ),
    },
},