From 3b9c21de42f76397d206b51367d902273d575968 Mon Sep 17 00:00:00 2001 From: DBX12 Date: Tue, 9 Mar 2021 07:59:05 +0000 Subject: [PATCH] Fix documentation first-steps.md The column is named `username` and not `name` in version 1.5.1. Corrected the documentation to reflect that. --- docs/helpful-guides/first-steps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/helpful-guides/first-steps.md b/docs/helpful-guides/first-steps.md index 70c2b2a..7d71337 100644 --- a/docs/helpful-guides/first-steps.md +++ b/docs/helpful-guides/first-steps.md @@ -65,7 +65,7 @@ Put this in your migration: // delete admin-user and administrator role $administratorRole = $auth->getRole("administrator"); - $user = \Da\User\Model\User::findOne(['name'=>"admin"]); + $user = \Da\User\Model\User::findOne(['username'=>"admin"]); $auth->revoke($administratorRole, $user->id); $user->delete(); $auth->remove($administratorRole);