thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.8k stars 2.67k forks source link

Admin menu #4592

Open Astriaporta opened 4 years ago

Astriaporta commented 4 years ago

Version information

Description

In menu_items you have a colunm named "url" but in your admin_menu.vue component, you tel item.href to set the url of link. This causes a non-clickable link display without url when you make a custom menu.

Screenshots

the migration

admin_menu.vue

Additional context

This error is present on the version i use but also on the last version.

DenisStrekha commented 3 years ago

The solution is to add command processItems($items); for your menu in "vendor\tcg\voyager\src\Models\Menu.php" if ($menuName == 'admin' && $type == '_json') { $items = static::processItems($items); } Just copy this block and change 'admin' to your menu name