Skip to content

Commit

Permalink
Merge pull request #9 from diegohq/fork-pr
Browse files Browse the repository at this point in the history
Laravel 5.6
  • Loading branch information
edmundluong88 authored May 1, 2018
2 parents c1732d7 + 05ac2d1 commit dd22d17
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"license": "MIT",
"require": {
"php": ">=7.1.0",
"illuminate/support": "5.5.*",
"illuminate/console": "5.5.*",
"illuminate/database": "5.5.*",
"illuminate/filesystem": "5.5.*"
"illuminate/support": "5.6.*",
"illuminate/console": "5.6.*",
"illuminate/database": "5.6.*",
"illuminate/filesystem": "5.6.*"
},
"require-dev": {
"phpunit/phpunit": "^6.2"
Expand Down
13 changes: 13 additions & 0 deletions src/LaravelSeeder/Repository/SeederRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,17 @@ public function getMigrations($steps): array
{
return $this->table()->get()->toArray();
}

/**
* Get the completed migrations with their batch numbers.
*
* @return array
*/
public function getMigrationBatches()
{
return $this->table()
->orderBy('batch', 'asc')
->orderBy('migration', 'asc')
->pluck('batch', 'migration')->all();
}
}

0 comments on commit dd22d17

Please sign in to comment.