浏览代码

Update GenerateDocumentation.php

Ensure the router is properly read notwithstanding the case in which *Dingo* or *Laravel* is typed.

The is more so important seeing that the documentation gives the options as *Dingo* or *Laravel* but the command reads only *dingo*.
Ezra Obiwale 6 年之前
父节点
当前提交
3b354755c4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Commands/GenerateDocumentation.php

+ 1 - 1
src/Commands/GenerateDocumentation.php

@@ -45,7 +45,7 @@ class GenerateDocumentation extends Command
      */
     public function handle()
     {
-        $usingDingoRouter = config('apidoc.router') == 'dingo';
+        $usingDingoRouter = strtolower(config('apidoc.router')) == 'dingo';
         if ($usingDingoRouter) {
             $routes = $this->routeMatcher->getDingoRoutesToBeDocumented(config('apidoc.routes'));
         } else {