Skip to content

Commit 004a066

Browse files
Update README.md
1 parent ec6c15a commit 004a066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Route::middleware(['api', ApiVersionControl::class])
228228
->where(['version' => 'v\d{1,3}'])
229229
->group(base_path('routes/api.php'));
230230
```
231-
_You can see here that we prefix the route name with `no_version.` (for the routers without a version). You have to do that to avoid the error `Another route is already using that name` when caching the routers. Decide for yourself whether this is desirable for your application._
231+
_You can see here that we prefix the route name with `default.` (for the routers without a version). You have to do that to avoid the error `Another route is already using that name` when caching the routers. Decide for yourself whether this is desirable for your application._
232232

233233
3. Add `\ReindertVetter\ApiVersionControl\ApiVersionControlServiceProvider::class` to your providers in config/app.php
234234
4. Create a config file by running `php artisan vendor:publish --provider='ReindertVetter\ApiVersionControl\ApiVersionControlServiceProvider'`.

0 commit comments

Comments
 (0)