Skip to content

Commit

Permalink
Merge pull request #21 from JayBizzle/command_fix
Browse files Browse the repository at this point in the history
Fix commands for Laravel 5.5
  • Loading branch information
JayBizzle authored Oct 4, 2017
2 parents b547c8b + e324647 commit ab91a64
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/Commands/MigrateDisorganise.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,20 @@ public function __construct(Filesystem $files, Migrator $migrator)
$this->files = $files;
}

/**
* Fire the command. (Compatibility for < 5.5).
*/
public function fire()
{
$this->handle();
}

/**
* Create date folder structure and move migrations into.
*
* @return void
*/
public function fire()
public function handle()
{
$this->basePath = $this->getMigrationPath();
$migrations = $this->migrator->getMigrationFiles($this->basePath);
Expand Down
10 changes: 9 additions & 1 deletion src/Commands/MigrateOrganise.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,20 @@ public function __construct(Filesystem $files, Migrator $migrator)
$this->files = $files;
}

/**
* Fire the command. (Compatibility for < 5.5).
*/
public function fire()
{
$this->handle();
}

/**
* Create date folder structure and move migrations into.
*
* @return void
*/
public function fire()
public function handle()
{
$basePath = $this->getMigrationPath();
$migrations = $this->migrator->getMigrationFiles($basePath, false);
Expand Down

0 comments on commit ab91a64

Please sign in to comment.