I have text field input I use that as weight values and I want disallow using decimals like: 4.5 KG I just want to allow 4 or 5, 100 nothing with .3
Is there anyway to do such thing?
Code
validation
'weight' => 'required|numeric',
form
{{ Form::text('weight', 1, array('class' => 'form-control')) }}