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.

  • Without demonstration of the problem code, someone will hardly help you - Alex_01
  • The problem is solved, it was not in the code. The Chrome browser's “Use hints to speed up page loading” function sent a request even when you entered ULR and the address bar when auto-filling, and after I pressed Enter , the second request was sent. - Dmitriy

0