From 0aa8fedfd6f3ccb5db496ab3b6b86398b57ec9ea Mon Sep 17 00:00:00 2001 From: Noitran Date: Tue, 5 Feb 2019 05:43:11 +0200 Subject: [PATCH] Changes in readme.md --- README.md | 17 +++++++++++++---- tests/TestCase.php | 1 - 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cfaaeee..7fe5aff 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Opendox - OpenAPI 3.0 (Swagger 3) package for Lumen and Laravel Software License Latest Version Total Downloads -

## About @@ -31,16 +30,26 @@ Also package adds route for raw json documentation output, so this package can b $ composer require noitran/opendox ``` +#### Laravel + +* Laravel uses provider auto discovery. Config file can be published using command + +``` +$ php artisan vendor:publish --provider="Noitran\Opendox\ServiceProvider" +``` + +#### Lumen + * Open your bootstrap/app.php and register as service provider ```php $app->register(Noitran\Opendox\ServiceProvider::class); ``` -* Laravel: publish config file +* Config file should be loaded manually in bootstrap/app.php -```bash -$ artisan vendor:publish --provider="Noitran\Opendox\ServiceProvider" +```php +$app->configure('opendox'); ``` ## Usage diff --git a/tests/TestCase.php b/tests/TestCase.php index 60934a5..eeaa45c 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -3,7 +3,6 @@ namespace Noitran\Opendox\Tests; use Orchestra\Testbench\TestCase as OrchestraTestCase; - use Noitran\Opendox\ServiceProvider; /**