Ali Raza
Ali Raza

Reputation: 83

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

Upvotes: 2

Views: 2379

Answers (2)

Gonzalo Besoain
Gonzalo Besoain

Reputation: 51

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

Upvotes: 5

boroboris
boroboris

Reputation: 1620

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.

Upvotes: 1

Related Questions