laravel-postal-code-validation icon indicating copy to clipboard operation
laravel-postal-code-validation copied to clipboard

Allow overriding examples

Open xPlux opened this issue 8 months ago • 0 comments

Description

The package provides an override option to replace the default regex patterns for postal code validation. However, it does not allow overriding the example postal codes. As a result, when a regex is overridden for a specific country, the displayed example may become incorrect.

Example

It could work something like this: PostalCodes::overrideExamples([ 'LV' => '1234' ]);

xPlux avatar Mar 25 '25 10:03 xPlux