vendredi 27 janvier 2017

Laravel update users db values on set interval

Let's say I have a users table with a points (integer) value and a modifier (integer) value. Every 10 seconds I want to increase all registered users points values based off of what the modifier values are.

For example:

User A, Points: 10, Modifier: 5

---- automatically after 10 seconds -----

User A, Points, 15, Modifier 5

What would be the best way to create a system like this within Laravel?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire