Skip to content

Commit 5267000

Browse files
committed
fix: update make:validator stub comments
1 parent be97230 commit 5267000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/validator.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ class ${filename} {
99
* 1. The username must be of data type string. But then also, it should
1010
* not contain special characters or numbers.
1111
* ```
12-
* schema.string([ rules.alpha() ])
12+
* schema.string({}, [ rules.alpha() ])
1313
* ```
1414
*
1515
* 2. The email must be of data type string, formatted as a valid
1616
* email. But also, not used by any other user.
1717
* ```
18-
* schema.string([
18+
* schema.string({}, [
1919
* rules.email(),
2020
* rules.unique({ inTable: 'users', column: 'email' }),
2121
* ])

0 commit comments

Comments
 (0)