We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84df1a8 commit 2870be2Copy full SHA for 2870be2
src/Generators/Scaffold/RoutesGenerator.php
@@ -36,10 +36,10 @@ public function rollback()
36
{
37
$routeContents = g_filesystem()->getFile($this->path);
38
39
- $routes = view('laravel-generator::templates.scaffold.routes')->render();
+ $routes = view('laravel-generator::scaffold.routes')->render();
40
41
if (Str::contains($routeContents, $routes)) {
42
- $routeContents = str_replace($routeContents, '', $routes);
+ $routeContents = str_replace($routes, '', $routeContents);
43
g_filesystem()->createFile($this->path, $routeContents);
44
$this->config->commandComment('scaffold routes deleted');
45
}
0 commit comments