Update first-steps.md

I have check in the code and found that default role added in behaviour is Admin, so please update readme
This commit is contained in:
projectwork1947
2021-05-22 17:40:07 +05:30
committed by GitHub
parent 737d6c1894
commit 4393845649

View File

@ -30,7 +30,7 @@ Put this in your migration:
$auth = Yii::$app->authManager;
// create a role named "administrator"
$administratorRole = $auth->createRole('administrator');
$administratorRole = $auth->createRole('admin');
$administratorRole->description = 'Administrator';
$auth->add($administratorRole);