[英]Laravel Voyager menu is not updating
I am using a laravel voyager package and there is a need to update the menu.我正在使用 laravel voyager package 并且需要更新菜单。 Despite updating their admin_menu.vue in the component folder, the changes are not being reflected.
尽管在组件文件夹中更新了他们的 admin_menu.vue,但更改并没有反映出来。 Also, I run below command:
另外,我运行以下命令:
php artisan cache:clear
npm update
npm run watch-poll
I had the same problem when using the voyager json menu menu('admin', '_json')
after inserting menu_items records directly into database, the changes where not reflecting.在将 menu_items 记录直接插入数据库后,使用 voyager json 菜单
menu('admin', '_json')
时,我遇到了同样的问题,更改没有反映出来。 The solution was to run解决方案是运行
php artisan optimize:clear
I had the same problem and fixed it by updating permission_role
table manually.我遇到了同样的问题,并通过手动更新
permission_role
表来修复它。
You can look up all the missing permissions in permissions
table and user id you want to update menu for in the users
table.您可以在
permissions
表中查找所有缺少的权限,以及要在users
表中更新菜单的用户 ID。 After that you can update permission_role
correctly.之后,您可以正确更新
permission_role
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.