Browse Source

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 năm trước cách đây
mục cha
commit
3b354755c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {