argument('days')) && (! is_numeric($this->argument('days')))) throw new \Exception('Days must be numeric: '.$this->argument('days')); $ao = Address::findFtn($this->argument('ftn')); if (! $ao) throw new \Exception('FTN not found: '.$this->argument('ftn')); // Check that the area belongs to the domain for the FTN if (! $this->argument('area')) throw new \Exception('Areaname is required'); $eo = Echoarea::where('name',$this->argument('area'))->sole(); if ($this->option('queue')) AreafixRescan::dispatch($ao,$eo,$this->argument('days'))->onQueue($this->option('queuename')); else AreafixRescan::dispatchSync($ao,$eo,$this->argument('days')); return self::SUCCESS; } }