Skip to content

Commit 2870be2

Browse files
committed
fixes: route rollback fixes
1 parent 84df1a8 commit 2870be2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generators/Scaffold/RoutesGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function rollback()
3636
{
3737
$routeContents = g_filesystem()->getFile($this->path);
3838

39-
$routes = view('laravel-generator::templates.scaffold.routes')->render();
39+
$routes = view('laravel-generator::scaffold.routes')->render();
4040

4141
if (Str::contains($routeContents, $routes)) {
42-
$routeContents = str_replace($routeContents, '', $routes);
42+
$routeContents = str_replace($routes, '', $routeContents);
4343
g_filesystem()->createFile($this->path, $routeContents);
4444
$this->config->commandComment('scaffold routes deleted');
4545
}

0 commit comments

Comments
 (0)