In a Laravel app, I have a form on which I need to validate numbers with a comma as the decimal separator. For the moment, it only works with a point because my validation r
Laravel supports regex
pattern in validation rule so you can use the given pattern to match something like 12,365.00
and it's recommended to use an array instead of pipe when using regular expressions as a rule
$rules = array('amount' => array('match:/^[0-9]{1,3}(,[0-9]{3})*\.[0-9]+$/'));
Check this link. Also, if you want to remove the commas for any reason then check this answer.