file_content, $this->file_name, $this->file_mime_type); return (new ParseEDocument($file, $this->company))->run(); } public function middleware() { return [(new WithoutOverlapping($this->company->company_key."_expense_import_".$this->file_name))->releaseAfter(60)]; } public function failed($exception = null) { if ($exception) { nlog("EXCEPTION:: ImportEDocument:: " . $exception->getMessage()); } $this->fail($exception); //manually fail - prevents future jobs with the same name from being discarded config(['queue.failed.driver' => null]); } }