Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/book/v6/tutorials/create-book-module-via-dot-maker.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ $nameInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($nameInput);
$this->add($nameInput, 'name');

$authorInput = new Input();
$authorInput->setRequired(true);
Expand All @@ -351,7 +351,7 @@ $authorInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($authorInput);
$this->add($authorInput, 'author');

$releaseDateInput = new Input();
$releaseDateInput->setRequired(true);
Expand All @@ -365,7 +365,7 @@ $releaseDateInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($releaseDateInput);
$this->add($releaseDateInput, 'releaseDate');
```

## Migrations
Expand Down
6 changes: 3 additions & 3 deletions docs/book/v6/tutorials/create-book-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ $nameInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($nameInput);
$this->add($nameInput, 'name');

$authorInput = new Input();
$authorInput->setRequired(true);
Expand All @@ -456,7 +456,7 @@ $authorInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($authorInput);
$this->add($authorInput, 'author');

$releaseDateInput = new Input();
$releaseDateInput->setRequired(true);
Expand All @@ -470,7 +470,7 @@ $releaseDateInput->getValidatorChain()
'message' => Message::VALIDATOR_REQUIRED_FIELD,
], true);

$this->add($releaseDateInput);
$this->add($releaseDateInput, 'releaseDate');
```

Now it's time to create the handlers.
Expand Down