There is an action that is under standard auth middleware. This action inserts 20 records into the database. So, if you log out, authenticate again and call this action - the data insert is duplicated, i.e. 40 records are inserted. Moreover, if you look at the collection with the dd () method - there are exactly 20 entries in the collection. I confess that the method is called twice when it is first called after authentication. Has anyone encountered this behavior?
Potestit, indeed, the action is called 2 times, but only after the first call after authentication for this action. Repeated calls are not duplicated. WTF?
UPD: changed the route with Route::('backpack/update', ...); on Route::('backpack/upd', ...); It began to work normally. As it reacts unhealthily to the word update in the route, the reason is still not clear.
Enter, the second request was sent. - Dmitriy