storage = Storage::disk('local'); } public function getAfterIngest($id) { $path = "contracts/$id"; // Ingest success. if ($this->storage->exists("$path.md")) { return $this->storage->get("$path.md"); } // Ingest fail. if ($this->storage->exists($path)) { return ''; } throw new \Exception('Document has not been processed yet.'); } }