---
title: "Discussion on \"The Soft Delete Bug That Lets Duplicate Accounts Slip Through (And the Fix in Laravel)\" | Hashnode"
description: "Discussion on \"The Soft Delete Bug That Lets Duplicate Accounts Slip Through (And the Fix in Laravel)\". Laravel's soft deletes can silently break unique constraints. Here's why it happens and how to fix it properly with a composite index."
url: "https://hashnode.com/posts/the-soft-delete-bug-that-lets-duplicate-accounts-slip-through-and-the-fix-in-laravel/6a9dd00558a6c4da4fd38049"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Soft Delete Bug That Lets Duplicate Accounts Slip Through (And the Fix in Laravel)](https://eliasalrgeaidev.hashnode.dev/the-soft-delete-bug-that-lets-duplicate-accounts-slip-through-and-the-fix-in-laravel?utm_source=hashnode&utm_medium=feed)

Laravel's soft deletes can silently break unique constraints. Here's why it happens and how to fix it properly with a composite index.

Sep 6 · 4 min read · eliasalrgeaidev.hashnode.dev  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#backend](https://hashnode.com/tag/backend)
-   [#database](https://hashnode.com/tag/database)
-   [#databases](https://hashnode.com/tag/databases)
-   [#php](https://hashnode.com/tag/php)
-   [#backend-developments](https://hashnode.com/tag/backend-developments)

## Written by

[Elias Alrgeai](https://hashnode.com/@EliasAlrgeaiDev)

@EliasAlrgeaiDev

  
[View profile](https://hashnode.com/@EliasAlrgeaiDev)

Laravel & PHP Specialist

Laravel &amp; PHP Specialist. Building secure, production-grade backend systems engineered for the real world. Focused on raw performance architecture and database scaling.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
