laravel Numeric validation

 

$rules = [
"collectingMyProduct.productId" => 'bail|required|',
"collectingMyProduct.productName" => 'bail|required|',
"collectingMyProduct.signaX" => 'bail|required|digits_between:1,8|',
"collectingMyProduct.signaHari" => 'bail|required|digits_between:1,1|',
"collectingMyProduct.qty" => 'bail|required|digits_between:1,150|',
"collectingMyProduct.productPrice" => 'bail|required|numeric|',
"collectingMyProduct.catatanKhusu" => 'bail|required|',

];

digits_between :min,max

The field under validation must have a length between the given min and max.

numeric

The field under validation must have a numeric value.

max:value

The field under validation must be less than or equal to a maximum value. Strings, numerics, and files are evaluated in the same fashion as the size rule.

min:value

The field under validation must have a minimum value. Strings, numerics, and files are evaluated in the same fashion as the size rule.