yii2-base template: change config/console.php configuration file where the authManager needs to be declared. And change the config/web.php too.
'authManager' => [
'class' => 'yii\rbac\DbManager',
],
yii2-advanced template: Change console/config/main.php And common/config/main.php
Then run yii migrate --migrationPath=@yii/rbac/migrations command
'authManager' => [
'class' => 'yii\rbac\DbManager',
],
yii2-advanced template: Change console/config/main.php And common/config/main.php
Then run yii migrate --migrationPath=@yii/rbac/migrations command
No comments:
Post a Comment