From 38d3dbc418fbe6eb11bb3c938eacaebe94f86d15 Mon Sep 17 00:00:00 2001 From: Gravitano Date: Tue, 9 Jun 2015 22:00:11 +0700 Subject: [PATCH] fix #32 --- .../Admin/Console/MigrationCommand.php | 40 +++++++++++++++++++ .../Providers/ConsoleServiceProvider.php | 1 + 2 files changed, 41 insertions(+) create mode 100644 src/Pingpong/Admin/Console/MigrationCommand.php diff --git a/src/Pingpong/Admin/Console/MigrationCommand.php b/src/Pingpong/Admin/Console/MigrationCommand.php new file mode 100644 index 0000000..1638d32 --- /dev/null +++ b/src/Pingpong/Admin/Console/MigrationCommand.php @@ -0,0 +1,40 @@ +laravel['files']->copyDirectory( + $path, + $this->laravel['path.database'] . '/migrations/' + ); + + $this->info("Migrations published successfully."); + } +} diff --git a/src/Pingpong/Admin/Providers/ConsoleServiceProvider.php b/src/Pingpong/Admin/Providers/ConsoleServiceProvider.php index 1368a0c..72f96f4 100644 --- a/src/Pingpong/Admin/Providers/ConsoleServiceProvider.php +++ b/src/Pingpong/Admin/Providers/ConsoleServiceProvider.php @@ -21,6 +21,7 @@ class ConsoleServiceProvider extends ServiceProvider 'Seed', 'Refresh', 'Install', + 'Migration', 'CreateUser', ];