How to get the data submitted by ajax in Laravel?

1. Function to be achieved: in the menu management page, manipulate the initial ranking of the menu by modifying the values in the sorted column. As shown in the following figure

2.ajax:


3.:


4.

5.dd($data)

Mar.07,2021
The

problem has been solved, and writing the answer is convenient for later beginners to view.
the code printed by 1.dd, you can see that there is data coming through if you take a closer look at it. Echo can display the data directly in the controller.
2. After getting the data, update it directly using the construction querier update, $res = DB:table ('xxx')-> where (' id',$id)-> update (['oid'= > $oid]);

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b41341-2c567.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b41341-2c567.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?