From 32b312a7c5f0501fc79efef812ed2dade6d97200 Mon Sep 17 00:00:00 2001 From: Darius Matulionis Date: Wed, 4 Sep 2019 15:15:22 +0300 Subject: [PATCH] Fix swagger assets path gettering (#223) Closes #222 --- src/helpers.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers.php b/src/helpers.php index 24ab78d..12efb42 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -27,7 +27,9 @@ function swagger_ui_dist_path($asset = null) 'swagger-ui.js.map', ]; - $path = base_path(config('l5-swagger.paths.swagger_ui_assets_path')); + $path = base_path( + config('l5-swagger.paths.swagger_ui_assets_path', 'vendor/swagger-api/swagger-ui/dist/') + ); if (! $asset) { return realpath($path);