@@ -65,20 +65,19 @@ protected function removeUnusedFiles(string $location): void
6565 $ files = [
6666 Helper::joinPaths (['config ' , 'permissions.stub ' ]),
6767 Helper::joinPaths (['routes ' , 'web.stub ' ]),
68+ Helper::joinPaths (['helpers ' , 'helpers.stub ' ]),
6869 Helper::joinPaths (['resources ' , 'views ' , '.gitkeep ' ]),
6970 'composer.json ' ,
70- Helper::joinPaths (['src ' , 'Providers ' , '{Module }ServiceProvider.stub ' ]),
71- Helper::joinPaths (['src ' , 'Forms ' , 'Settings ' , '{Module }Form.stub ' ]),
72- Helper::joinPaths (['src ' , 'Http ' , 'Controllers ' , 'Settings ' , '{Module }Controller.stub ' ]),
73- Helper::joinPaths (['src ' , 'Http ' , 'Requests ' , 'Settings ' , '{Module }Request.stub ' ]),
74- Helper::joinPaths (['src ' , 'PanelSections ' , '{Module }PanelSection.stub ' ]),
71+ Helper::joinPaths (['src ' , 'Providers ' , '{Name }ServiceProvider.stub ' ]),
72+ Helper::joinPaths (['src ' , 'Forms ' , 'Settings ' , '{Name }Form.stub ' ]),
73+ Helper::joinPaths (['src ' , 'Http ' , 'Controllers ' , 'Settings ' , '{Name }Controller.stub ' ]),
74+ Helper::joinPaths (['src ' , 'Http ' , 'Requests ' , 'Settings ' , '{Name }Request.stub ' ]),
75+ Helper::joinPaths (['src ' , 'PanelSections ' , '{Name }PanelSection.stub ' ]),
7576 ];
7677
7778 foreach ($ files as $ file ) {
7879 File::delete (Helper::joinPaths ([$ location , $ file ]));
7980 }
80-
81- File::deleteDirectory (Helper::joinPaths ([$ location , 'src ' , 'PanelSections ' , '' ]));
8281 }
8382
8483 public function getReplacements (string $ replaceText ): array
0 commit comments