PHPackages                             kmuenkel/validation-patch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. kmuenkel/validation-patch

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

kmuenkel/validation-patch
=========================

Correct for various issues in Laravel Validation

1.0.2(5y ago)0189MITPHP

Since Nov 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kmuenkel/validation-patch)[ Packagist](https://packagist.org/packages/kmuenkel/validation-patch)[ RSS](/packages/kmuenkel-validation-patch/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (9)Versions (4)Used By (0)

Enhanced Validation
===================

[](#enhanced-validation)

For all fixes, simply including `ValidationPatch\ValidationPatchServiceProvider` in your `app` config will allow them to take effect automatically.

### Fixes

[](#fixes)

1. **Dots in field names**: Laravel offers the ability to escape dots in field names so that they're not mistaken for dot-delimiters for nested arrays. However, this did not apply to field references within in rules such as `required_with` or `exclude_unless`. This corrects for that.
2. **Forward slashes in field names**: Due to a parsing errors, field names that had forward slashes, such as URI claims, would cause an error. These are now supported.
3. **`required` only active if parent exists**: If a nested array element carried an incarnation of the `required` rule, it would be executed even if the parent element were optional. With this package, nested requirements only fire if the parent exists.
4. **Custom Rule Message Placeholders**: Allow `Illuminate\Contracts\Validation\Rule::message()` output to be respected when aliased via `Illuminate\Support\Facades\Validator::extend()`. Also allow those messages to contain placeholders such as `"attribute"` or `":input"`.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1987d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86619ba927c0055375588f0c21d6d0d89be6a74e4a2cb98558062c852ebe5c66?d=identicon)[kmuenkel](/maintainers/kmuenkel)

---

Tags

laravelvalidationfix

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kmuenkel-validation-patch/health.svg)

```
[![Health](https://phpackages.com/badges/kmuenkel-validation-patch/health.svg)](https://phpackages.com/packages/kmuenkel-validation-patch)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
