diff --git a/src/Generators/RouteGenerate.php b/src/Generators/RouteGenerate.php
index <HASH>..<HASH> 100644
--- a/src/Generators/RouteGenerate.php
+++ b/src/Generators/RouteGenerate.php
@@ -19,9 +19,9 @@ class RouteGenerate
      *
      * @param NamesGenerate
      */
-    public function __construct(NamesGenerate $names)
+    public function __construct()
     {
-        $this->names = $names;
+        $this->names = app()->make('NamesGenerate');
     }
 
     /**
refactor RouteGenerate class