mercredi 21 novembre 2018

How to Validate year with regex validation in Laravel?

in Laravel application I need save year input data, it is should be numeric number and should include only 4 numbers. this is current system,

'year'    => 'required|min:4|numeric', 

this is working but can enter more than 4 numbers. how can enter only 4 numbers here?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire