I need to be able to specify a certain formation I want a field to be (preferably through the Laravel Request rules()
function), for example, rules for a field called phone_number
need to be
- Must only contain spaces, numbers and the
+
symbol
and rules for a field called postcode
need to be
- Must only contain letters and numbers
- Must be in one of the following formats (XX XXX, XX XXXX, XXXX XXX)
Is it possible to achieve this through a Custom Request file?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire