#database #development #laravel #php #reading-list

🔗 firstOrCreate() vs createOrFirst() in Laravel Eloquent
laravel-news.com

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...

continue reading on laravel-news.com

⚠️ This post links to an external website. ⚠️