Download the PHP package cerbero/command-validator without Composer
On this page you can find all versions of the php package cerbero/command-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cerbero/command-validator
More information about cerbero/command-validator
Files in cerbero/command-validator
Package command-validator
Short Description Validate Laravel console commands input.
License MIT
Homepage https://github.com/cerbero90/command-validator
Informations about the package command-validator
Command Validator
Laravel package to validate input in Artisan console commands.
Install
Via Composer
Usage
This package merely consists in the ValidatesInput
trait that Artisan commands can use to define their own validation rules for arguments and options in the rules()
method:
The available rules are the same validation rules provided by Laravel. If you need custom validation, please have a look at how to define custom rules.
Sometimes you may need to show custom messages or attributes for some validation errors. You can achieve that by overriding the methods messages()
and attributes()
:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Andrea Marco Sartori
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of command-validator with dependencies
illuminate/contracts Version >=5.5
illuminate/support Version >=5.5
symfony/console Version >=3.3.7