From cc44a3e2a20e122a3392e37d5dde161ce85aa35a Mon Sep 17 00:00:00 2001 From: Michael Bladowski Date: Wed, 28 Dec 2016 00:54:28 +0100 Subject: [PATCH] add hostname to output fix https://github.com/dingo/blueprint/issues/17 --- src/Blueprint.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Blueprint.php b/src/Blueprint.php index b95a66e..fa545e8 100644 --- a/src/Blueprint.php +++ b/src/Blueprint.php @@ -131,6 +131,8 @@ protected function generateContentsFromResources(Collection $resources, $name) $contents = ''; $contents .= $this->getFormat(); + $contents .= $this->line(1); + $contents .= 'HOST: ' . \Config::get('api.protocol') . '://' . \Config::get('api.domain') . '/' . \Config::get('api.prefix'); $contents .= $this->line(2); $contents .= sprintf('# %s', $name); $contents .= $this->line(2);