简体   繁体   中英

How to fix menu position don't save in Laravel Voyager?

I have problem when I try to save menu position with drag and drop in Laravel Voyager.

Laravel 5.5 version
Voyager v1.1.3

The first image: after save сhanges his position anyway在此处输入图片说明

The second image: The end result like this save, but when I press the f5 button or update the page, this link changes position to look like the first photo.

在此处输入图片说明

I tried to change current link item and name.

I was facing the same issue;

Laravel 5.7 version

Voyager v1.2.6

adding ->orderBy('order') in children method of

\\vendor\\tcg\\voyager\\src\\Models\\MenuItem.php

and order functionality works again. I know it's not a proper solution but hope this will helps. Hope Voyager team will resolve this issue in upcoming release.

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