简体   繁体   中英

Laravel Voyager menu is not updating

I am using a laravel voyager package and there is a need to update the menu. Despite updating their admin_menu.vue in the component folder, the changes are not being reflected. Also, I run below command:

php artisan cache:clear
npm update 
npm run watch-poll

link of voyager package

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. The solution was to run

php artisan optimize:clear

I had the same problem and fixed it by updating permission_role table manually.

You can look up all the missing permissions in permissions table and user id you want to update menu for in the users table. After that you can update permission_role correctly.

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