@@ -22,10 +22,10 @@ By default, the generated documentation will be accessible via `/api-documentati
2222
2323To achieve this, you need to be familiar with OpenApi. If you aren't, please consult the [ documentation] ( https://spec.openapis.org/oas/v3.1.0 )
2424
25- You can to configure OpenApi information, servers and security in the configuration:
25+ You can to configure OpenApi information, servers and security in your configuration file ` config/rest.php ` :
2626``` php
2727[
28- /*
28+ /*
2929 |--------------------------------------------------------------------------
3030 | Rest Documentation
3131 |--------------------------------------------------------------------------
@@ -137,25 +137,12 @@ First you'll need to generate a dedicated `RestDocumentationServiceProvider` cla
137137php artisan rest:documentation-provider
138138```
139139
140- Then add the freshly generated service provider to your providers in your ` config/app .php` file:
140+ Then add the freshly generated service provider to your providers in your ` bootstrap/providers .php` file:
141141``` php
142- [
143- /*
144- |--------------------------------------------------------------------------
145- | Autoloaded Service Providers
146- |--------------------------------------------------------------------------
147- |
148- | The service providers listed here will be automatically loaded on the
149- | request to your application. Feel free to add your own services to
150- | this array to grant expanded functionality to your applications.
151- |
152- */
153-
154- 'providers' => [
142+ return [
155143 // ...
156- \App\Providers\RestDocumentationServiceProvider::class
157- ]
158- ]
144+ App\Providers\RestDocumentationServiceProvider::class
145+ ];
159146```
160147
161148You are then free to declare your own routes in your freshly generated service provider:
0 commit comments