:baby_chick: Follow the commands:
authManager
has been configured."githubjeka/yii2-gui-rbac": "1.0.2"
composer update
yii migrate --migrationPath=@yii/rbac/migrations/
@app/config/main.php
the code:
// '/config/web.php' for Basic or '/backend/config/main' - Advanced Yii2 application.
'modules' => [
'rbac' => [
'class' => 'githubjeka\rbac\Module',
'as access' => [ // if you need to set access
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['@'] // all auth users
],
]
]
],
],
/index.php?r=rbac