简体   繁体   English

如何使用 nova-menu-builder 在 Laravel Nova 中创建我的第一个菜单

[英]How to create my first menu in Laravel Nova using nova-menu-builder

I have a fresh installation of Laravel 8, Nova, and the nova-menu-builder package and I'm trying to create my first menu.我全新安装了 Laravel 8、Nova 和 nova-menu-builder 包,我正在尝试创建我的第一个菜单。

But when I try to create, it asks me to provide a menu from a dropdown that is empty.但是当我尝试创建时,它要求我从空的下拉列表中提供一个菜单。

Do you know how to overcome this issue?你知道如何克服这个问题吗?

在此处输入图片说明

I got an answer from the author of the package here.我在这里从包的作者那里得到了答案。
The documentation was missing this part.文档缺少这一部分。
https://github.com/optimistdigital/nova-menu-builder/issues/63#issuecomment-702554059 https://github.com/optimistdigital/nova-menu-builder/issues/63#issuecomment-702554059

I had to define the list of available menus in the config file.我必须在配置文件中定义可用菜单列表。
See nova-menu.php, key named menus.参见 nova-menu.php,名为 menus 的键。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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