Skip to content

Commit 9bbc18b

Browse files
grinrympociot
authored andcommitted
Fixes issues #65, #84 (#124)
* Fixes issue #84 and #65 * tests fix
1 parent c2388cb commit 9bbc18b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Mpociot/ApiDoc/Generators/LaravelGenerator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public function callRoute($method, $uri, $parameters = [], $cookies = [], $files
8888

8989
$kernel->terminate($request, $response);
9090

91+
if (file_exists($file = App::bootstrapPath().'/app.php')) {
92+
$app = require $file;
93+
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
94+
}
95+
9196
return $response;
9297
}
9398
}

0 commit comments

Comments
 (0)