From 880cf6eb03e9bc5ce7183208b226b489bcd136de Mon Sep 17 00:00:00 2001 From: pan85 Date: Thu, 5 Jan 2017 17:40:24 +0200 Subject: [PATCH] api url fix --- src/Commands/ApiDocGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/ApiDocGenerator.php b/src/Commands/ApiDocGenerator.php index 2bcc520..086ccaa 100644 --- a/src/Commands/ApiDocGenerator.php +++ b/src/Commands/ApiDocGenerator.php @@ -128,8 +128,8 @@ protected function setMainSwaggerInfo() 'version' => config('apidoc.apiVersion'), 'title' => config('apidoc.apiTitle'), ]; - - $this->swagger['host'] = env('APP_URL'); + + $this->swagger['host'] = str_replace(['http://', 'https://'], '', env('APP_URL')); $this->swagger['basePath'] = '/'.trim(config('apidoc.apiBasePath'), '/').'/'; $this->swagger['tags'] = []; }