Vigyata.AI
Is this your channel?
GithubGithub03

12 Update decimal validation rule to allow validation of signed numbers

This commit fixes the decimal validation rule so it supports signed numbers. In my test, both -12.34 and +12.34 validate correctly with decimal:2, which is exactly what you want when you’re validating numeric inputs that can go below zero.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Decimal validation now works with + and - signed numbers
  • +More accurate validation for real-world numeric inputs

Cons

  • -You need to be on the updated Laravel version to get this behavior

Featured in this video