Skip to content

Commit

Permalink
Update RouteRegistrar.php (laravel#43509)
Browse files Browse the repository at this point in the history
Allow a route groups to also call the dynamic where methods described in https://laravel.com/docs/9.x/routing#parameters-regular-expression-constraints

E.g.
```php
Route::prefix('/{something}')->whereIn('something', ['foo', 'bar'])->group(function() {});
```
  • Loading branch information
Ken-vdE authored and Ken committed Aug 9, 2022
1 parent 731298c commit 4fcb8f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Routing/RouteRegistrar.php
Expand Up @@ -25,6 +25,7 @@
* @method \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
* @method \Illuminate\Routing\RouteRegistrar scopeBindings()
* @method \Illuminate\Routing\RouteRegistrar where(array $where)
* @method \Illuminate\Routing\RouteRegistrar whereIn(array|string $parameters, array $values)
* @method \Illuminate\Routing\RouteRegistrar withoutMiddleware(array|string $middleware)
*/
class RouteRegistrar
Expand Down Expand Up @@ -67,6 +68,7 @@ class RouteRegistrar
'prefix',
'scopeBindings',
'where',
'whereIn',
'withoutMiddleware',
];

Expand Down

0 comments on commit 4fcb8f8

Please sign in to comment.