Skip to content

Commit aa3548f

Browse files
authored
Add note about avoiding $casts property with enums.
1 parent a07467d commit aa3548f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/basic-usage/enums.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ If you are using PHP 8.1+ you can implement Enums as native types.
1313

1414
Internally, Enums implicitly implement `\BackedEnum`, which is how this package recognizes that you're passing an Enum.
1515

16+
NOTE: Presently (version 6) this package does not support using `$casts` to specify enums on the `Permission` model. You can still use enums to reference things as shown below, just without declaring it in a `$casts` property.
17+
1618

1719
## Code Requirements
1820

0 commit comments

Comments
 (0)