diff --git a/src/Illuminate/Database/Migrations/Migrator.php b/src/Illuminate/Database/Migrations/Migrator.php index 58a0c30e3c5d..5ff37bccea05 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 ends_with($path, '.php') ? [$path] : $this->files->glob($path.'/*_*.php'); + return Str::endsWith($path, '.php') ? [$path] : $this->files->glob($path.'/*_*.php'); })->filter()->sortBy(function ($file) { return $this->getMigrationName($file); })->values()->keyBy(function ($file) {