diff --git a/docs/book/v6/tutorials/create-book-module-via-dot-maker.md b/docs/book/v6/tutorials/create-book-module-via-dot-maker.md index a65131f..37d66cd 100644 --- a/docs/book/v6/tutorials/create-book-module-via-dot-maker.md +++ b/docs/book/v6/tutorials/create-book-module-via-dot-maker.md @@ -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); @@ -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); @@ -365,7 +365,7 @@ $releaseDateInput->getValidatorChain() 'message' => Message::VALIDATOR_REQUIRED_FIELD, ], true); -$this->add($releaseDateInput); +$this->add($releaseDateInput, 'releaseDate'); ``` ## Migrations diff --git a/docs/book/v6/tutorials/create-book-module.md b/docs/book/v6/tutorials/create-book-module.md index bca0067..fdd3755 100644 --- a/docs/book/v6/tutorials/create-book-module.md +++ b/docs/book/v6/tutorials/create-book-module.md @@ -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); @@ -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); @@ -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.