where('is_active', true)->chunkById(100, function ($accounts): void { foreach ($accounts as $account) { $account->update([ 'usm_authentication' => Str::uuid()->toString(), 'usm' => hash('sha256', Str::uuid()->toString()), 'last_token_refreshed_at' => now(), ]); } }); $this->info('Bastion tokens refreshed.'); return self::SUCCESS; } }