Explorar o código

Fix command registration

Marcel Pociot %!s(int64=9) %!d(string=hai) anos
pai
achega
c881642165
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      README.md
  2. 2 2
      src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 ## Laravel API Documentation Generator
 
-Automatically generate your API documentation from your existing Laravel routes.
+Automatically generate your API documentation from your existing Laravel routes. Take a look at the [example documentation](http://marcelpociot.com/whiteboard/).
 
 `php artisan api:gen --routePrefix=settings/api/*`
 

+ 2 - 2
src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php

@@ -31,10 +31,10 @@ class ApiDocGeneratorServiceProvider extends ServiceProvider
             return new UpdateDocumentation();
         });
 
-        $this->commands(
+        $this->commands([
             'apidoc.generate',
             'apidoc.update',
-        );
+        ]);
     }
 
 }