now()->toIso8601String(), 'items' => array_map(fn (string $key): array => [ 'key' => $key, 'status' => 'requires_project_mapping', 'note' => 'Map this key to actual legacy route names in the real app and disable/remove before production readiness signoff.', ], $items), ]; $path = storage_path('app/generated/legacy-unsafe-route-audit.json'); File::ensureDirectoryExists(dirname($path)); File::put($path, json_encode($report, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); $this->line(json_encode($report, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); return self::SUCCESS; } }