driver($driver)->isConfigured()) { warning("The active captcha driver [{$driver}] is not fully configured."); warning('Set its credentials in the admin panel or .env before enabling, or the widget will not verify.'); } ConfigCacheService::put('captcha.enabled', true); info('captcha.enabled => true'); $requested = (array) $this->option('surfaces'); $surfaces = empty($requested) ? self::SURFACES : $requested; foreach ($surfaces as $surface) { if (! in_array($surface, self::SURFACES, true)) { warning("Skipping unknown surface: {$surface}"); continue; } ConfigCacheService::put('captcha.active.'.$surface, true); info("captcha.active.{$surface} => true"); } info('Done. Active driver: '.$driver); return self::SUCCESS; } }