Route group ->where argument type differs #33704
-
|
Hello, When using
When using a prefixed route group with a route parameter in it the where function only allows to pass an array: Is there any special reason that throws |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Route::group([
'prefix' => 'users/{userId}',
'where' => ['userId' => '[0-9]+']
], function () { ... }) |
Beta Was this translation helpful? Give feedback.
wherein this case is attribute of group and allows only one parameter.where(array $where): RouteRegistrar