mercredi 2 mars 2016

Check integer value is greater then 0 in Laravel

I am writing the below code to make sure that the integer value is greater then 0

public function rules()
{
    return [
        'DUIHistoryID'          => 'required|integer|between:1,11',
    ];
}

Am I missing something? validation is not working in the above code



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire