Skip to content

Commit

Permalink
Merge pull request #127 from mvenghaus/main
Browse files Browse the repository at this point in the history
handle relative path in migration file exists check
  • Loading branch information
freekmurze authored Mar 7, 2024
2 parents 87a3fea + 2d62195 commit 59db18c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PackageServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public function boot()

public static function generateMigrationName(string $migrationFileName, Carbon $now): string
{
$migrationsPath = 'migrations/';
$migrationsPath = 'migrations/' . dirname($migrationFileName) . '/';
$migrationFileName = basename($migrationFileName);

$len = strlen($migrationFileName) + 4;

Expand Down

0 comments on commit 59db18c

Please sign in to comment.