Skip to content

Commit

Permalink
Add ApiVersionControlServiceProvider::class to your providers
Browse files Browse the repository at this point in the history
  • Loading branch information
reindert-vetter authored Dec 21, 2021
1 parent 4f7c46a commit 44a4b0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ Route::middleware(['api', ApiVersionControl::class])
->where(['version', '#[a-z]\d{1,3}#'])
->group(base_path('routes/api.php'));
```
3. Create a config file by running `php artisan vendor:publish --provider='ReindertVetter\ApiVersionControl\ApiVersionControlServiceProvider'`.
4. Choose a [Version parser](#version-parser) or create one yourself.
3. Add `\ReindertVetter\ApiVersionControl\ApiVersionControlServiceProvider::class` to your providers in config/app.php
4. Create a config file by running `php artisan vendor:publish --provider='ReindertVetter\ApiVersionControl\ApiVersionControlServiceProvider'`.
5. Choose a [Version parser](#version-parser) or create one yourself.

If it's not quite clear yet, post your question in the [discussion](https://github.com/reindert-vetter/api-version-control/discussions/5).

0 comments on commit 44a4b0c

Please sign in to comment.