Laravel firstOrCreate, firstOrNew, createOrFirst and friends

Stop using firstOrCreate blindly. Learn when to use firstOrNew, createOrFirst, updateOrCreate, updateOrInsert and upsert in real Laravel apps. Read more → If you like my feed, follow me on X , LinkedIn , and GitHub .