#database #development #laravel #php #reading-list
🔗 firstOrCreate() vs createOrFirst() in Laravel Eloquent
Laravel v10.20 came out with a brand-new method called
createOrFirst(), contributed by Tony Messias, which might be a little confusing because Laravel already had a
firstOrCreate(). What are the differences? Why do we need two methods for this? Let's take a look...
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.