---
title: "Validating distinct data in requests"
url: https://daily.dev/posts/validating-distinct-data-in-requests-7rimyavjv
source_url: https://freek.dev/3124-validating-distinct-data-in-requests
type: article
source: "FREEK.DEV"
published: 2026-05-31T12:31:46.435Z
updated: 2026-05-31T12:32:01.161Z
tags: ["php", "laravel"]
reading_time: 1
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Validating distinct data in requests

**[FREEK.DEV](https://daily.dev/sources/freek)** · 1 min read · 0 upvotes · 0 comments

## Summary

Michael Dyrynda demonstrates how to use Laravel's `distinct` validation rule to prevent duplicate values in nested request payloads, stopping them from corrupting relationship mapping. The post also covers the `strict` and `ignore_case` modifier options for more precise comparison control.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://freek.dev/3124-validating-distinct-data-in-requests>

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel)

[View this post on daily.dev](https://daily.dev/posts/validating-distinct-data-in-requests-7rimyavjv)
