Validate that a given string is not present in the pwned passwords list at https://haveibeenpwned.com/Passwords
Install using composer from packagist
composer require acodeninja/laravel-pwned-passwords-validatorUse as you would any other validation rule
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'email' => 'required|email|unique:users,email',
'password' => 'required|pwned_password_strict',
];
}$validator = Validator::make($request->all(), [
'email' => 'required|email|unique:users,email',
'password' => 'required|pwned_password_strict',
])->validate();