diff --git a/src/PackageServiceProvider.php b/src/PackageServiceProvider.php index 3d2cbb1..4a737c0 100644 --- a/src/PackageServiceProvider.php +++ b/src/PackageServiceProvider.php @@ -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;