Skip to content

Commit 59db18c

Browse files
authored
Merge pull request #127 from mvenghaus/main
handle relative path in migration file exists check
2 parents 87a3fea + 2d62195 commit 59db18c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/PackageServiceProvider.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ public function boot()
167167

168168
public static function generateMigrationName(string $migrationFileName, Carbon $now): string
169169
{
170-
$migrationsPath = 'migrations/';
170+
$migrationsPath = 'migrations/' . dirname($migrationFileName) . '/';
171+
$migrationFileName = basename($migrationFileName);
171172

172173
$len = strlen($migrationFileName) + 4;
173174

0 commit comments

Comments
 (0)