Checking if the exact length of a numeric field is correct in laravel 5
1 answer
You are looking for a rule digits
. From the docs :
The field under validation must be numeric and must be of exact length.
'last4digits' => 'digits:4'
+4
source to share