Skip to content

Commit 396ac51

Browse files
committed
Issue #110: update book tutorial
Signed-off-by: horea <horea@rospace.com>
1 parent 721a2a7 commit 396ac51

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/book/v6/tutorials/create-book-module.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class CreateBookInputFilter extends AbstractInputFilter
396396
}
397397
```
398398

399-
We split all the inputs just for the purpose of this tutorial and to demonstrate a clean `CreateBookInputFilter` but you could have all the inputs created directly in the `CreateBookInputFilter` like this:
399+
We create separate `Input` files to demonstrate their reusability and obtain a clean `CreateBookInputFilter` but you could have all the inputs created directly in the `CreateBookInputFilter` like this:
400400

401401
```php
402402
$nameInput = new Input();
@@ -732,10 +732,10 @@ That's it. The module is now registered.
732732
We need to configure access to the newly created endpoints.
733733
Open `config/autoload/authorization.global.php` and append the below route names to the `UserRoleEnum::Guest->value` key:
734734

735-
- `books::list-books`
736-
- `book::view-book`
737-
- `book::create-book`
738-
735+
* `books::list-books`
736+
* `book::view-book`
737+
* `book::create-book`
738+
739739
> Make sure you read and understand the rbac [documentation](https://docs.dotkernel.org/dot-rbac-guard/v4/configuration/).
740740
741741
## Migrations

0 commit comments

Comments
 (0)