简体   繁体   中英

Create dynamic menu for Laravel project using Voyager

I'm creating a new website with Laravel and use Voyager as admin panel for my website.

The problem is let's assume that we want to create a menu with menu builder for all categories, so when we add or delete a category it will be also added/deleted from our menu and use it on my frontend.

Like as I saw with the menu builder we can just add a static item with it's route.

Thanks

Currently the only way to programmatically manage menus with Voyager is to work directly with the menus and menu_items tables directly.

In the Voyager admin panel, the menus are configured with BREAD . There is an open Github issue to make BREAD available programmatically, which would then allow one to manage the menus programmatically, but it has not been developed yet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM