tiny refactoring for consistency
This commit is contained in:
parent
461db28d33
commit
ea2bb09d55
@ -267,7 +267,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
||||
public function getResources()
|
||||
{
|
||||
$resources = $this->resources;
|
||||
foreach ($this as $routes) {
|
||||
foreach ($this->routes as $routes) {
|
||||
if ($routes instanceof RouteCollection) {
|
||||
$resources = array_merge($resources, $routes->getResources());
|
||||
}
|
||||
|
Reference in New Issue
Block a user