Correct for various issues in Laravel Validation
kmuenkel/validation-patch is a Laravel package for correct for various issues in laravel validation.
It currently has 0 GitHub stars and 189 downloads on Packagist (latest version 1.0.2).
Install it with composer require kmuenkel/validation-patch.
Discover more Laravel packages by kmuenkel
or browse all Laravel packages to compare alternatives.
Last updated
For all fixes, simply including ValidationPatch\ValidationPatchServiceProvider in your app config will allow them to take effect automatically.
required_with or exclude_unless. This corrects for that.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.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".