diff --git a/src/Blueprint.php b/src/Blueprint.php index b95a66e..829349e 100644 --- a/src/Blueprint.php +++ b/src/Blueprint.php @@ -131,6 +131,10 @@ protected function generateContentsFromResources(Collection $resources, $name) $contents = ''; $contents .= $this->getFormat(); + if (class_exists('\Illuminate\Config\Repository')) { + $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);