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; /**