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
$router->group([ 'middleware' => $middleware ], function () use ($router, $prefix) { $router->get($prefix, ['uses' => [Controller::class, 'webpage'], 'as' => 'scribe']); $router->get("$prefix.postman", ['uses' => [Controller::class, 'postman'], 'as' => 'scribe.postman']); $router->get("$prefix.openapi", ['uses' => [Controller::class, 'openapi'], 'as' => 'scribe.openapi']); });
Routing doesn't work in lumen.
in lumen is not accepted in uses array to pass as in laravel. Or maybe I missed something. I would be grateful if you correct me )
The text was updated successfully, but these errors were encountered:
I fixed it this way
$router->group([ 'middleware' => $middleware, ], function () use ($router, $prefix) { $router->get($prefix, ['uses' => 'Knuckles\Scribe\Http\Controller@webpage', 'as' => 'scribe']); $router->get("$prefix.postman", ['uses' => 'Knuckles\Scribe\Http\Controller@postman', 'as' => 'scribe.postman']); $router->get("$prefix.openapi", ['uses' => 'Knuckles\Scribe\Http\Controller@openapi', 'as' => 'scribe.openapi']); });
I would like to know your opinion on how much is correct
Sorry, something went wrong.
b859f9a
Wow. Lumen really is terrible. Fixed in 3.16.0
yeah, partially agree :) thanks !
@shalvah , sorry, I had a question off topic. Why can't I create another issue?
No branches or pull requests
$router->group([
'middleware' => $middleware
], function () use ($router, $prefix) {
$router->get($prefix, ['uses' => [Controller::class, 'webpage'], 'as' => 'scribe']);
$router->get("$prefix.postman", ['uses' => [Controller::class, 'postman'], 'as' => 'scribe.postman']);
$router->get("$prefix.openapi", ['uses' => [Controller::class, 'openapi'], 'as' => 'scribe.openapi']);
});
Routing doesn't work in lumen.
in lumen is not accepted in uses array to pass as in laravel. Or maybe I missed something. I would be grateful if you correct me )
The text was updated successfully, but these errors were encountered: