How to add a data insertion interval in the database with Laravel?

Asked

Viewed 39 times

1

I am having the following problem, any button in my project that leads the user to insert some information in the database, if it is pressed several times quickly (without giving time for the page update and display the data), it inserts several times the same data that was written in the inputs in the database.

Comentários repetidos

I don’t know if Laravel has something against flaws of this kind, but if it doesn’t, I believe that adding a few seconds or minutes interval for each next insertion would solve, someone knows some solution to it?

Version of Laravel used: 5.6

  • 1

    You can lock the button after clicking, already thought about it?

  • why it is that Voce at the end of the insertion does not send the user to another page?

  • This is exactly what I’m talking about, there is no time to forward, if you press several times it floods with several inserts, the page does not have time to load

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.