argument('file')); $m = []; if ($this->argument('ftn')) { $ao = Address::findFTN($this->argument('ftn')); } elseif (preg_match(sprintf('/^%s\.(.{3})$/',Packet::regex),$this->argument('file'),$m)) { $ao = Address::findOrFail(hexdec($m[1])); } else { $this->error('Unable to determine sender FTN address'); return self::FAILURE; } Job::dispatchSync($rel_name,$ao->system,$this->option('dontqueue')); return self::SUCCESS; } }