From 8b838455f84e191d8f7391590a1bcde14e98f032 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 7 Sep 2022 10:43:01 +0100 Subject: Use scorm.disk config option for serving static files --- src/Http/Controllers/ScormPlayerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/ScormPlayerController.php b/src/Http/Controllers/ScormPlayerController.php index 7c801c9..a15f0a4 100644 --- a/src/Http/Controllers/ScormPlayerController.php +++ b/src/Http/Controllers/ScormPlayerController.php @@ -48,7 +48,7 @@ class ScormPlayerController extends Controller public function serveModule(string $uuid, string $path) { - $path = Storage::disk('scorm-local')->path("{$uuid}/{$path}"); + $path = Storage::disk(config('scorm.disk'))->path("{$uuid}/{$path}"); $mime = MimeType::from($path); try { -- cgit v1.2.3