Search code examples
phplaravelvoyager

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 enter image description here

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.

enter image description here

I tried to change current link item and name.


Solution

  • 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.