Skip to content

Commit 3b35475

Browse files
authored
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*.
1 parent cda59f2 commit 3b35475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/GenerateDocumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(RouteMatcher $routeMatcher)
4545
*/
4646
public function handle()
4747
{
48-
$usingDingoRouter = config('apidoc.router') == 'dingo';
48+
$usingDingoRouter = strtolower(config('apidoc.router')) == 'dingo';
4949
if ($usingDingoRouter) {
5050
$routes = $this->routeMatcher->getDingoRoutesToBeDocumented(config('apidoc.routes'));
5151
} else {

0 commit comments

Comments
 (0)