diff --git a/src/Commands/MakeShieldSuperAdminCommand.php b/src/Commands/MakeShieldSuperAdminCommand.php index e62072c..8b00801 100644 --- a/src/Commands/MakeShieldSuperAdminCommand.php +++ b/src/Commands/MakeShieldSuperAdminCommand.php @@ -65,7 +65,7 @@ public function handle(): int ['ID', 'Name', 'Email', 'Roles'], static::getUserModel()::with('roles')->get()->map(function (Authenticatable $user) { return [ - 'id' => $user->getAttribute('id'), + 'id' => $user->getKey(), 'name' => $user->getAttribute('name'), 'email' => $user->getAttribute('email'), /** @phpstan-ignore-next-line */