File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -170,27 +170,27 @@ public function withoutMiddleware($middleware)
170
170
}
171
171
172
172
/**
173
- * Indicate that the resource routes should have "shallow" nesting .
173
+ * Add "where" constraints to the resource routes.
174
174
*
175
- * @param bool $shallow
175
+ * @param mixed $wheres
176
176
* @return \Illuminate\Routing\PendingResourceRegistration
177
177
*/
178
- public function shallow ( $ shallow = true )
178
+ public function where ( $ wheres )
179
179
{
180
- $ this ->options ['shallow ' ] = $ shallow ;
180
+ $ this ->options ['wheres ' ] = $ wheres ;
181
181
182
182
return $ this ;
183
183
}
184
184
185
185
/**
186
- * Add wheres to the resource routes.
186
+ * Indicate that the resource routes should have "shallow" nesting .
187
187
*
188
- * @param mixed $wheres
188
+ * @param bool $shallow
189
189
* @return \Illuminate\Routing\PendingResourceRegistration
190
190
*/
191
- public function wheres ( $ wheres )
191
+ public function shallow ( $ shallow = true )
192
192
{
193
- $ this ->options ['wheres ' ] = $ wheres ;
193
+ $ this ->options ['shallow ' ] = $ shallow ;
194
194
195
195
return $ this ;
196
196
}
Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ public function testResourceWheres()
533
533
];
534
534
535
535
$ this ->router ->resource ('users ' , RouteRegistrarControllerStub::class)
536
- ->wheres ($ wheres );
536
+ ->where ($ wheres );
537
537
538
538
/** @var \Illuminate\Routing\Route $route */
539
539
foreach ($ this ->router ->getRoutes () as $ route ) {
You can’t perform that action at this time.
0 commit comments