/** * Request a download of a snapshot by id/hash * * @param string $snapshotId The snapshot-id */ public function download($snapshotId) { try { /** @type RouteHash $_hash */ $_hash = RouteHash::with(['snapshot'])->byHash($snapshotId)->firstOrFail(); /** @type Filesystem $_fs */ $_fs = $_hash->snapshot->instance->getSnapshotMount(); $_fs->readStream($_hash->actual_path_text); } catch (\Exception $_ex) { abort(Response::HTTP_NOT_FOUND); } }