I am trying to validate a field that has to be bigger than Zero.
This rule return success:
if($request->input('kg_bags')) {
$validator = Validator::make(Input::all(), [
"kg_bags" => "numeric|min:1"
]}
Checking the value posted, it is: 0
Why don't I get an error?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2oJeZBJ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire