Laravel Soft Deletes: Delete Without Actually Deleting 🗑️
Why permanently delete data when you can just... pretend? Learn how Laravel's soft deletes saved my butt (and can save yours too).
8 articles tagged with ""eloquent""
Why permanently delete data when you can just... pretend? Learn how Laravel's soft deletes saved my butt (and can save yours too).
Stop manually converting JSON strings and dates! Laravel's model casts handle data transformation automatically. Let me show you the magic I wish I knew 5 years ago.
That 'fast' local app that takes 10 seconds in production? Spoiler: It's N+1 queries. Here's how I hunted them down and made our API 50x faster.
Your database stores 'john_doe' but you need 'John Doe'? Let Laravel do the heavy lifting automatically!
If you're copy-pasting the same WHERE clauses everywhere, Laravel scopes are about to change your life. Clean, reusable query filters that actually make sense!
Stop cluttering your controllers! Let Laravel Observers watch your models and handle side effects like a ninja. Clean code incoming!
Think you know Eloquent relationships? These advanced tricks will change how you query your database forever!
Stop fighting with your database relationships! Here's how to use Eloquent like a pro (without the headaches).