diff --git a/src/Illuminate/Foundation/Console/RouteListCommand.php b/src/Illuminate/Foundation/Console/RouteListCommand.php index e4c9428a1a35..6a008af2cf34 100644 --- a/src/Illuminate/Foundation/Console/RouteListCommand.php +++ b/src/Illuminate/Foundation/Console/RouteListCommand.php @@ -98,7 +98,7 @@ public function handle() { $this->router->flushMiddlewareGroups(); - if (empty($this->router->getRoutes())) { + if (! $this->router->getRoutes()->count()) { return $this->error("Your application doesn't have any routes."); }