diff --git a/src/Commands/DbConfigCommand.php b/src/Commands/DbConfigCommand.php index d74bc78..37a4218 100644 --- a/src/Commands/DbConfigCommand.php +++ b/src/Commands/DbConfigCommand.php @@ -63,6 +63,7 @@ public function createViewFromStub(string $viewName): void if ($this->files->exists($newViewPath)) { $this->warn("File : {$newViewPath} already exists"); + return; } @@ -136,6 +137,7 @@ public function getSourceFilePath(): string $panelPrefix = $panel ? ucfirst($panel) . '\\' : ''; $path = base_path('app\\Filament\\' . $panelPrefix . 'Pages') . '\\' . $this->getSingularClassName($this->argument('name')) . 'SettingsPage.php'; + return str_replace('\\', '/', $path); }