Topic: Eloquent
All the articles about "Eloquent".
-
How Laravel Migrations Work (And Why You Don't Touch the Database Directly)
A plain-language explanation of Laravel migrations for non-developers. What they are, why they exist, and how they work in practice — with a real example from changing a campaign duration setting.
-
Why updateOrCreate With a Null ID Always Creates Duplicates
Laravel's updateOrCreate silently creates duplicates when passed a null ID. Here's why SQL id = NULL never matches, and the simple guard to fix it.