Skip to content

Commit a3d4704

Browse files
committed
Update readme
1 parent 6f695b0 commit a3d4704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ User::hasAnyFlags('permissions', [UserPermissions::DeleteComments(), UserPermiss
472472

473473
## Attribute Casting
474474

475-
You may cast model attributes to enums using Laravel 7.x's built in custom casting. This will cast the attribute to an enum instance when getting and back to the enum value when setting.
475+
You may cast model attributes to enums using Laravel's built in custom casting. This will cast the attribute to an enum instance when getting and back to the enum value when setting.
476476
Since `Enum::class` implements the `Castable` contract, you just need to specify the classname of the enum:
477477

478478
```php

0 commit comments

Comments
 (0)