Topic: Eloquent
All the articles about "Eloquent".
-
Why Foreign Key Cascades Don't Work With Soft Deletes (And What To Do Instead)
Foreign key cascadeOnDelete looks like the perfect cleanup solution — until you use soft deletes. Here's why it silently fails, three ways to fix it, and what Taylor Otwell recommends.
-
Everything That Went Wrong When I Tried to Delete a Team
Deleting a team in a multi-tenant Laravel app broke transactions, orphaned pivot rows, and wiped user data across teams. Here are the five things that went wrong and how I fixed them.
-
I Switched WYSIWYG Editors and All My Images Disappeared
Switching from Froala to TipTap broke every image in our app. Here's how we cleaned the legacy HTML — and the Laravel migration bug that silently skipped half our records.
-
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.