file_content, "urn:cen.eu:en16931:2017"): case stristr($this->file_content, "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0"): case stristr($this->file_content, "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_2.1"): case stristr($this->file_content, "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_2.0"): return (new ZugferdEDocument($this->file_content, $this->file_name, $this->company))->run(); default: throw new Exception("E-Invoice standard not supported"); } } public function middleware() { return [new WithoutOverlapping($this->company->company_key)]; } public function failed($exception = null) { if ($exception) { nlog("EXCEPTION:: ImportEDocument:: ".$exception->getMessage()); } config(['queue.failed.driver' => null]); } }