PasswordValidatorServiceProvider
class PasswordValidatorServiceProvider extends Provider (View source)
Properties
protected Application | $app | from Provider | |
protected Repository | $config | The config repository we're using to register |
Methods
Registers the services provided by this provider.
Apply configured password length validators
Get maximum length validator
Get minimum length validator
Apply translatable strings to minimum and maximum requirements
Apply validators that require specific substrings
Create a regex validator
Create a closure validator that wraps a regex validator and handles all errors If the given regex is invalid, we will deny all passwords!
Details
__construct(Application $app)
No description
register()
Registers the services provided by this provider.
provides()
No description
protected
applyPasswordReuseValidator(ValidatorManagerInterface $manager)
No description
protected
applyLengthValidators(ValidatorManagerInterface $manager)
Apply configured password length validators
protected MaximumLengthValidator|null
getMaximumRequirement()
Get maximum length validator
protected MinimumLengthValidator|null
getMinimumRequirement()
Get minimum length validator
protected
applyMinMaxStrings($minimum, $maximum)
Apply translatable strings to minimum and maximum requirements
protected
applyStringRequirementValidators(ValidatorManagerInterface $manager)
Apply validators that require specific substrings
protected RegexValidator
regexValidator(string $regex, string $requirement)
Create a regex validator
protected
applyRegexRequirements(ValidatorManagerInterface $manager)
No description
protected ClosureValidator|mixed
wrappedRegexValidator($regex, $requirementString)
Create a closure validator that wraps a regex validator and handles all errors If the given regex is invalid, we will deny all passwords!