Looking to hire Laravel developers? Try LaraJobs

laravel-validation-locale maintained by stefnats

Description
Laravel validator for locale string.
Last update
2024/04/25 09:06 (dev-master)
Links
Downloads
3 274

Comments
comments powered by Disqus

Laravel Validation Locale

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 :)