This is the documentation for
v5 but the latest version is
v6
.
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/laravel-permission
##Enum Prerequisites
To use the Enum
features built-in to PHP 8.1, you will need to upgrade to v6 of this package.
You may alternatively create your own Enum implementation or use other packages such as Spatie's own Enum package.
https://github.com/spatie/enum/
https://github.com/bensampo/laravel-enum