pcbimon
2 years ago
107
2
Laravel

How to Add Custom menu in Voyager Laravel?

Posted 2 years ago by pcbimon

I'm newbie for laravel. I can create list of menu but I can't route to it. I read document in How to Create Custom Menu. I confuse this code.

Menu::display('main', 'bootstrap');

And

<ul>
    @foreach($items as $menu_item)
        <li><a href="{{ $menu_item->url }}">{{ $menu_item->title }}</a></li>
    @endforeach
</ul>

And

Menu::display('main', 'my_menu');

I don't know this code need to put it somewhere. Doc Ref

Please sign in or create an account to participate in this conversation.