---
title: "Discussion on \"Laravel: Unique Validation with Another Column\" | Hashnode"
description: "Discussion on \"Laravel: Unique Validation with Another Column\". Sometimes you need to ensure a record is unique, but only if another has a certain value. Does this sound strange? Let me give you an example:\nThe SaaS Problem\nYou are building a SaaS and each customer can add users, but users can only be added once,..."
url: "https://hashnode.com/posts/laravel-unique-validation-with-another-column/5fca9b982e4db7780e4827d0"
---

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

Discussion

# [Laravel: Unique Validation with Another Column](https://blog.emil.moe/laravel-unique-validation-with-another-column?utm_source=hashnode&utm_medium=feed)

Sometimes you need to ensure a record is unique, but only if another has a certain value. Does this sound strange? Let me give you an example: The SaaS Problem You are building a SaaS and each customer can add users, but users can only be added once,...

Dec 4, 2020 · 3 min read · blog.emil.moe  
Updated Dec 19, 2020  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#validation](https://hashnode.com/tag/validation)
-   [#php7](https://hashnode.com/tag/php7)
-   [#eloquent](https://hashnode.com/tag/eloquent)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Emil Moe](https://hashnode.com/@emilmoe)

@emilmoe · Copenhagen, Denmark

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

Senior Data Engineer

Senior Data- and Software Engineer with many years experience in Hadoop and Laravel. Living in Denmark, based many years in Asia and Cambodia.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
