Skip to content

Commit

Permalink
[Docs] sync v5 and v6
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed Jun 29, 2023
1 parent dc30aff commit 740e5d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class User extends Authenticatable
}
```

## Must not have a `role` or `roles` property, nor a `roles()` method
## Must not have a [role] or [roles] property, nor a [roles()] method

Additionally, your `User` model/object MUST NOT have a `role` or `roles` property (or field in the database), nor a `roles()` method on it. Those will interfere with the properties and methods added by the `HasRoles` trait provided by this package, thus causing unexpected outcomes when this package's methods are used to inspect roles and permissions.
Your `User` model/object MUST NOT have a `role` or `roles` property (or field in the database by that name), nor a `roles()` method on it. Those will interfere with the properties and methods added by the `HasRoles` trait provided by this package, thus causing unexpected outcomes when this package's methods are used to inspect roles and permissions.

## Must not have a `permission` or `permissions` property, nor a `permissions()` method
## Must not have a [permission] or [permissions] property, nor a [permissions()] method

Similarly, your `User` model/object MUST NOT have a `permission` or `permissions` property (or field in the database), nor a `permissions()` method on it. Those will interfere with the properties and methods added by the `HasPermissions` trait provided by this package (which is invoked via the `HasRoles` trait).
Your `User` model/object MUST NOT have a `permission` or `permissions` property (or field in the database by that name), nor a `permissions()` method on it. Those will interfere with the properties and methods added by the `HasPermissions` trait provided by this package (which is invoked via the `HasRoles` trait).

## Config file

Expand Down

0 comments on commit 740e5d8

Please sign in to comment.