Skip to content
Discussion options

You must be logged in to vote

where in this case is attribute of group and allows only one parameter.
where(array $where): RouteRegistrar

Route::group([
    'prefix' => 'users/{userId}',
    'where' => ['userId' => '[0-9]+']
], function () { ... })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dennisprudlo
Comment options

Answer selected by dennisprudlo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants