argument('path') ?? '/'; $bundles = Bundle::findBundles(Storage::disk(env('CONTENT_DISK')), $path, true); foreach ($bundles as $bundle) { $this->output->write(sprintf('Repairing %s... ', $bundle->getPath())); $bundle->repair(); $this->info('OK'); } } }