milwad-dev / laravel-validate

The Laravel-Validate package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation logic.
https://packagist.org/packages/milwad/laravel-validate
MIT License
456 stars 39 forks source link

[1.x] Make kebab case validation better #23

Closed Mohammadreza-73 closed 1 year ago

Mohammadreza-73 commented 1 year ago

Using regex.

Mohammadreza-73 commented 1 year ago

Thanks! What use think about /^(?:\p{Ll}+\-)*\p{Ll}+$/um regex?

I saw your comment in this validation and i think its better to use regex.