Laravel – How can I make a select and insert query thread safe without unique indexes?
I need to check if a row exists, and if it does - update some column, and if not, create a new record. But the queries I am using are not thread safe, as I do not have unique indexes…