From edafc4539d192ece31d4ba9d7984b08e2fc78359 Mon Sep 17 00:00:00 2001 From: Austin Drummond Date: Sat, 9 Nov 2024 15:43:40 -0500 Subject: [PATCH] Fix returning a path I noticed this function was not using the Pass ID pass when returning the path, and it required passing in the Pass ID as a constructor. It now allows for the following interaction: ```php $pass = new PassGenerator; $pass->getPassFilePath($uuid); ``` --- src/PassGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PassGenerator.php b/src/PassGenerator.php index 206108a..e635c29 100644 --- a/src/PassGenerator.php +++ b/src/PassGenerator.php @@ -310,7 +310,7 @@ public static function getPass(string $passId) public function getPassFilePath(string $passId) { if (Storage::disk('passgenerator')->exists($passId . '.pkpass')) { - return $this->passRealPath . '/../' . $this->passFilename; + return Storage::disk('passgenerator')->path($passId . '.pkpass'); } return false;