We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.37
8.3.9
Laravel
11.28
static.output_path => "docs" laravel.add_routes => false laravel.docs_url => "/" auth.enabled => true auth.default => true auth.use_value => "xxxxx"
When generating the api docs, routes which
a) have an optional parameter b) are prefixed by a Route::prefix()->group(...)
are missing prefixes and the optional parameter.
You can verify by creating this example:
Route::prefix('users')->name('users.')->group(function () { Route::get('{user?}/show', fn () => 'hello')->name('show'); });
Expected result:
users/{user?}/show
Actual result:
//show
This issue does not appear however when using non optional parameters.
The text was updated successfully, but these errors were encountered:
Update: It works again when nesting another prefix, and putting the route in there
Sorry, something went wrong.
No branches or pull requests
Scribe version
4.37
PHP version
8.3.9
Framework
Laravel
Framework version
11.28
Scribe config
What happened?
When generating the api docs, routes which
a) have an optional parameter
b) are prefixed by a Route::prefix()->group(...)
are missing prefixes and the optional parameter.
You can verify by creating this example:
Expected result:
Actual result:
This issue does not appear however when using non optional parameters.
Docs
The text was updated successfully, but these errors were encountered: