The new method is designed to do better in highly concurrent environments and helps reduce race conditions, but requires a unique constraint on the database. FirstOrCreate() was the original method, and now the new method uses the new one under the hood.
Sort: