Download the PHP package swatty007/laravel-context-prohibited-rule without Composer
On this page you can find all versions of the php package swatty007/laravel-context-prohibited-rule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swatty007/laravel-context-prohibited-rule
More information about swatty007/laravel-context-prohibited-rule
Files in swatty007/laravel-context-prohibited-rule
Package laravel-context-prohibited-rule
Short Description Simple validation rule to disallow application related words within passwords.
License MIT
Homepage https://github.com/swatty007/laravel-context-prohibited-rule
Informations about the package laravel-context-prohibited-rule
Context prohibited validation rule for Laravel
Simple validation rule to disallow application related words within passwords. Its checks that the entered data does not contain your application name, or url to prevent users weakening their passwords.
Installation
You can install the package via composer:
Laravel's service provider discovery will automatically configure our service provider for you.
Add the validation message to your validation lang file:
For each language add a validation message to validation.php like below
Configuration
After installing the package you can publish the configuration file via:
It contains some optional configuration parameters and is fully documented.
Usage
After installation, the validator will be available for use directly in your validation rules.
For error message to work correctly you should prefer to initialize the rule object!
Within the context of a registration form, it would look like this:
Testing
Yes we do!
Changelog
Please see CHANGELOG for more information what has changed recently.
TODO
- Currently None
Pull Requests are welcome :monocle_face:
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Martin Niehoff
- All Contributors
License
The MIT License (MIT). Please see License File for more information.