From c881642165d6c6adaae3042656bd95def3906ba8 Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Thu, 12 May 2016 00:10:07 +0200 Subject: [PATCH] Fix command registration --- README.md | 2 +- src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d2fe3591..299f6e92 100644 --- a/README.md +++ b/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/*` diff --git a/src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php b/src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php index 9be3968d..627efb72 100644 --- a/src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php +++ b/src/Mpociot/ApiDoc/ApiDocGeneratorServiceProvider.php @@ -31,10 +31,10 @@ public function register() return new UpdateDocumentation(); }); - $this->commands( + $this->commands([ 'apidoc.generate', 'apidoc.update', - ); + ]); } }