argument('pkt')); $d = $this->argument('domain') ? Domain::where('name',$this->argument('domain'))->singleOrFail() : NULL; foreach (Packet::open($f,$d) as $msg) { // @todo Quick check that the packet should be processed by us. // @todo validate that the packet's zone is in the domain. // Dispatch job. Job::dispatchSync($msg); } } }