You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/v6/tutorials/create-book-module.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -396,7 +396,7 @@ class CreateBookInputFilter extends AbstractInputFilter
396
396
}
397
397
```
398
398
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:
400
400
401
401
```php
402
402
$nameInput = new Input();
@@ -732,10 +732,10 @@ That's it. The module is now registered.
732
732
We need to configure access to the newly created endpoints.
733
733
Open `config/autoload/authorization.global.php` and append the below route names to the `UserRoleEnum::Guest->value` key:
734
734
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
+
739
739
> Make sure you read and understand the rbac [documentation](https://docs.dotkernel.org/dot-rbac-guard/v4/configuration/).
0 commit comments