diff --git a/src/Illuminate/Database/Migrations/Migrator.php b/src/Illuminate/Database/Migrations/Migrator.php index 66cda4499dbb..58a0c30e3c5d 100755 --- a/src/Illuminate/Database/Migrations/Migrator.php +++ b/src/Illuminate/Database/Migrations/Migrator.php @@ -428,7 +428,7 @@ public function resolve($file) public function getMigrationFiles($paths) { return Collection::make($paths)->flatMap(function ($path) { - return $this->files->glob($path.'/*_*.php'); + return ends_with($path, '.php') ? [$path] : $this->files->glob($path.'/*_*.php'); })->filter()->sortBy(function ($file) { return $this->getMigrationName($file); })->values()->keyBy(function ($file) {