This rule will validate that a password hasn't been exposed in a data breach.
composer require laravel-validation-rules/exposed-password
use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;
$request->validate([
'password' => ['required', new PasswordExposed],
]);
This project is licensed under a GNU Lesser General Public License v3.0 which you can find in this LICENSE.
If you have any feedback, comments or suggestions, please feel free to open an issue within this repository.
This package is part of the Laravel Validation Rules collection. If you're after more useful validation rules, head to the Laravel Validation Rules website.