I'm trying to validate an input called 'name'
with regular expression, a validate input would be like: 2018/2019
. my code:
$this->validate($request, [
'name' => 'required|regex:[0-9]{4}/[0-9]{4}'
]);
and I'm having this error:
preg_match(): Unknown modifier '{'
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire