diff --git a/app/Commands/Foundation/Migrations/MigrationCreator.php b/app/Commands/Foundation/Migrations/MigrationCreator.php index c3fd627..4ffa2ff 100644 --- a/app/Commands/Foundation/Migrations/MigrationCreator.php +++ b/app/Commands/Foundation/Migrations/MigrationCreator.php @@ -26,13 +26,14 @@ protected function getPath($name, $path) { $devPath = ''; if (app()->environment() === 'development') { - $devPath = $this->devPath() . 'src/'; + $devPath = $this->devPath() . 'src'; } - $path = getcwd() . $devPath . 'database/migrations'; + + $path = getcwd() . $devPath . '/database/migrations'; if (!$this->files->isDirectory($path)) { $this->files->makeDirectory($path, 0777, true); } - return $path . '/' . $this->getDatePrefix() . '_' . $name . '.php'; + return str_replace('//', '/', $path) . '/' . $this->getDatePrefix() . '_' . $name . '.php'; } }