🔥 Laravel Tip: Update or create
May 1, 2022
You can use the updateOrCreate method to update a record if it exists or create it if it doesn't.
Other tips:
🔥 Laravel Tip: Map vs Transform in collections
Sep 13, 2022
🔥 Laravel Tip: Relationships filtering
Apr 8, 2022