diff --git a/app/Commands/Foundation/Migrations/MigrationCreator.php b/app/Commands/Foundation/Migrations/MigrationCreator.php index c3fd627..0c5d787 100644 --- a/app/Commands/Foundation/Migrations/MigrationCreator.php +++ b/app/Commands/Foundation/Migrations/MigrationCreator.php @@ -28,7 +28,9 @@ protected function getPath($name, $path) if (app()->environment() === 'development') { $devPath = $this->devPath() . 'src/'; } - $path = getcwd() . $devPath . 'database/migrations'; + + $path = getcwd() . $devPath . DIRECTORY_SEPARATOR .'database' . DIRECTORY_SEPARATOR . 'migrations'; + if (!$this->files->isDirectory($path)) { $this->files->makeDirectory($path, 0777, true); }