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 2870be2 commit eb0484eCopy full SHA for eb0484e
src/Generators/API/APIRoutesGenerator.php
@@ -40,7 +40,7 @@ public function rollback()
40
$routes = view('laravel-generator::api.routes', $this->variables())->render();
41
42
if (Str::contains($routeContents, $routes)) {
43
- $routeContents = str_replace($routeContents, '', $routes);
+ $routeContents = str_replace($routes, '', $routeContents);
44
g_filesystem()->createFile($this->path, $routeContents);
45
$this->config->commandComment('api routes deleted');
46
}
0 commit comments