Skip to content
Denis Duliçi edited this page Apr 11, 2019 · 2 revisions

This package intends to create and manage menus and sidebars for your Laravel app. It ships with ready-to-go presenters and you can create your own ones.

Quick Example

// Menu.php
menu()->create('navbar', function($menu) {
    $menu->url('/', 'Home', 1);

    $menu->route('/', 'About', ['user' => '1'], 2);

    $menu->dropdown('Settings', function ($sub) {
        $sub->header('ACCOUNT');
        $sub->url('/settings/design', 'Design');
        $sub->divider();
        $sub->url('logout', 'Logout');
    }, 3);
});

// main.blade.php
{!! menu('navbar') !!}
Clone this wiki locally