Skip to content

Commit eb0484e

Browse files
committed
fixes: api route rollback fixes
1 parent 2870be2 commit eb0484e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/API/APIRoutesGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function rollback()
4040
$routes = view('laravel-generator::api.routes', $this->variables())->render();
4141

4242
if (Str::contains($routeContents, $routes)) {
43-
$routeContents = str_replace($routeContents, '', $routes);
43+
$routeContents = str_replace($routes, '', $routeContents);
4444
g_filesystem()->createFile($this->path, $routeContents);
4545
$this->config->commandComment('api routes deleted');
4646
}

0 commit comments

Comments
 (0)