getModelType($this->argument('type')); if ($this->option('scanned')) { $class::update(['scanned'=>NULL]); } $class::NotScanned()->each(function ($item) { if ($item->remove) { Log::warning(sprintf('Not scanning [%s], marked for removal',$item->id)); return; } Log::info(sprintf('%s: Rescanning [%s]',$item->type,$item->id)); $this->dispatch((new CatalogScan($item))->onQueue('scan')); }); Log::info(sprintf('Processed [%s]',$o->count())); } }