@@ -57,13 +57,15 @@ protected function getTemplateContents()
5757 $ module = $ this ->getModule ();
5858
5959 return (new Stub ('/route-provider.stub ' , [
60- 'ALIAS ' => $ module ->getAlias (),
61- 'NAMESPACE ' => $ this ->getClassNamespace ($ module ),
62- 'CLASS ' => $ this ->getFileName (),
63- 'MODULE_NAMESPACE ' => $ this ->laravel ['module ' ]->config ('namespace ' ),
64- 'MODULE ' => $ this ->getModuleName (),
65- 'WEB_ROUTES_PATH ' => $ this ->getWebRoutesPath (),
66- 'API_ROUTES_PATH ' => $ this ->getApiRoutesPath (),
60+ 'ALIAS ' => $ module ->getAlias (),
61+ 'NAMESPACE ' => $ this ->getClassNamespace ($ module ),
62+ 'CLASS ' => $ this ->getClass (),
63+ 'MODULE ' => $ this ->getModuleName (),
64+ 'NAME ' => $ this ->getFileName (),
65+ 'STUDLY_NAME ' => $ module ->getStudlyName (),
66+ 'MODULE_NAMESPACE ' => $ this ->laravel ['module ' ]->config ('namespace ' ),
67+ 'WEB_ROUTES_PATH ' => $ this ->getWebRoutesPath (),
68+ 'API_ROUTES_PATH ' => $ this ->getApiRoutesPath (),
6769 ]))->render ();
6870 }
6971
@@ -72,7 +74,7 @@ protected function getTemplateContents()
7274 */
7375 private function getFileName ()
7476 {
75- return 'RouteServiceProvider ' ;
77+ return 'Route ' ;
7678 }
7779
7880 /**
0 commit comments