Skip to content

Commit b735473

Browse files
authored
improve make:migration command output (#56591)
1 parent c119641 commit b735473

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Database/Console/Migrations/MigrateMakeCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ protected function writeMigration($name, $table, $create)
112112
$name, $this->getMigrationPath(), $table, $create
113113
);
114114

115+
if (windows_os()) {
116+
$file = str_replace('/', '\\', $file);
117+
}
118+
115119
$this->components->info(sprintf('Migration [%s] created successfully.', $file));
116120
}
117121

0 commit comments

Comments
 (0)