Why Laravel min/max Fails on Numbers: Add the numeric Rule
📰 Dev.to · Recca Tsai
Laravel min/max rules compare string length by default, letting 0 pass validation. Add the numeric rule to switch to value comparison and fix the bug.
Laravel min/max rules compare string length by default, letting 0 pass validation. Add the numeric rule to switch to value comparison and fix the bug.