rule-builder icon indicating copy to clipboard operation
rule-builder copied to clipboard

This package is awesome

Open mindfullsilence opened this issue 6 years ago • 2 comments

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.

mindfullsilence avatar Jan 16 '19 05:01 mindfullsilence

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 😁

timacdonald avatar Jan 16 '19 23:01 timacdonald

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.

gabrielresende06 avatar Mar 05 '21 11:03 gabrielresende06