stefnats/laravel-validation-locale

Laravel validator for locale string.

1.5 2024-04-25 07:06 UTC

This package is auto-updated.

Last update: 2024-05-25 07:23:49 UTC


README

This package delivers a validator to validate locale strings like de_DE or en_US (everything that is included in ResourceBundle::getLocales(''))

Installation

Just install using composer with:

composer require stefnats/laravel-validation-locale

Usage

In your requests you can use:

use Stefnats\Locale\Locale;

//

return [
    'my_locale_input' => [new Locale()],
];

License

This project is licensed under a GPL license which you can find in this LICENSE.

And also: Have fun :)