rule-builder
rule-builder copied to clipboard
This package is awesome
This is exactly what I was looking for. The laravel validation strings are hard to remember, hard to read, and take forever to write. This solves all those problems. Well done on this, mate.
Hey @mindfullsilence - thanks so much for letting me know you are enjoying the package! If you feel it can be improved in anyway, please let me know 😁
Hi, @timacdonald , I agree with @mindfullsilence , it's an awesome package.
I'm not sure if you already have it in mind, or if it works in another IDE, but on PHPStorm I miss the methods autocomplete, for example when I type: Rule:: I only can see 2 methods there: extends and extendsWithRules. It would be great if you add a phpdoc block that the IDE can read and return the methods available in the package, an example of phpdoc would be
/**
- Class Rule
- @package TiMacDonald\Validation
- @method static \TiMacDonald\Validation\Rule min($value);
- @method static \TiMacDonald\Validation\Rule required();
- @method static \TiMacDonald\Validation\Rule email($min = null, $max = null);
- @method static \TiMacDonald\Validation\Rule string($min = null, $max = null);
*/
Kind regards.