1

以下に示すように、カスタム検証では:

'custom' => array(
    'attribute-name' => array(
        'rule-name' => 'custom-message',
    ),
),

attribute-name-{regex} と一緒に正規表現を定義するにはどうすればよいですか?!

例:

 'custom' => array(
    'institute_regex:{/d{1}}' => array(
            'required' => 'the field is required',
        ),
),
4

1 に答える 1