Hey guys!
I'm attempting to fix this issue I'm having with my hobby project, not sure if anyone can help or if I'm really okay to ask for help, however, I'm gonna give it a go because I got closed down on the Laravel GitHub and I can't get a response on StackOverflow, so, thought I'd try the Laracasts community!
Anyway, on to my issue!
I'm not sure whether its an issue with my code or Laravel 5.3 or a bug... but for some reason I cannot issue updates to the order of the nodes. I can edit them fine via the terminal (i.e. artisan tinker), and inserting them is also fine, however trying to update, no luck.
I've tried several things, to see if I can locate the source of the issue. I think I've found it: Query ROLLBACK is found within my MySQL logs, this is present only when issuing an update via the web interface...
It's a tad confusing, to be honest.
Here is the code updating the node:
Link::rebuildTree($request->order);
Link is an Eloquent Model that uses the NodeTrait from the laravel-nestedset package. The $request->order is a client-side generated order of nodes to update the current order.
I did have it working prior to upgrading to Laravel 5.3 and is now present. I cannot see what changes to the Eloquent side of Laravel would have caused this bug... I've even reverted back to Laravel 5.2 to make sure this isn't something my end. Nope, 5.2 works fine, 5.3 breaks. I'm at a loss on how to work around this...
Thanks in advance, and any other information I can give please don't hesitate to ask :D I am just not sure what other information would be pertinent for the issue I'm having, and it seems peculiar, considering it works fine on Laravel 5.2 but not on 5.3 :S