maniakalen / yii2-auth
Yii2 Auth rbac module
1.0.0
2019-10-11 09:56 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.12
This package is auto-updated.
Last update: 2024-12-11 22:20:08 UTC
README
Yii2 Auth extends the yii2-rbac and is useful for when you use database for defining roles and permissions.
To execute migrations:
php yii migrate/up --migration-namespaces=maniakalen\\auth\\migrations
This will import all the permissions required to manipulate the database.
Module configuration
'auth' => [
'class' => \maniakalen\auth\Module::class,
'components' => [
'controlManager' => [
'class' => \maniakalen\auth\models\AuthControlManager::class,
'userClass' => User::class
]
]
]
The module defines rbac category for translations.