We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793f15a commit 2146fa1Copy full SHA for 2146fa1
src/Commands/GenerateDocumentation.php
@@ -47,7 +47,12 @@ public function __construct(RouteMatcher $routeMatcher)
47
*/
48
public function handle()
49
{
50
- URL::forceRootUrl(config('app.url'));
+ try {
51
+ URL::forceRootUrl(config('app.url'));
52
+ } catch (\Exception $e) {
53
+ echo "Warning: Couldn't force base url as Lumen currently doesn't have the forceRootUrl method.\n";
54
+ echo "You should probably double check URLs in your generated documentation.\n";
55
+ }
56
$usingDingoRouter = strtolower(config('apidoc.router')) == 'dingo';
57
if ($usingDingoRouter) {
58
$routes = $this->routeMatcher->getDingoRoutesToBeDocumented(config('apidoc.routes'));
0 commit comments