From 502525a4da79adf47dffd6d24d5bd6515423d081 Mon Sep 17 00:00:00 2001 From: Shea Lewis Date: Wed, 3 Feb 2016 12:37:15 -0800 Subject: [PATCH] Fix migrate command --- resources/stubs/migration.stub | 2 +- src/Console/Generators/MakeMigrationCommand.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/stubs/migration.stub b/resources/stubs/migration.stub index 43930116..1bdd471f 100644 --- a/resources/stubs/migration.stub +++ b/resources/stubs/migration.stub @@ -3,7 +3,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class {{migrationName}} extends Migration +class {{className}} extends Migration { /** * Run the migrations. diff --git a/src/Console/Generators/MakeMigrationCommand.php b/src/Console/Generators/MakeMigrationCommand.php index f19d3480..789c8eba 100644 --- a/src/Console/Generators/MakeMigrationCommand.php +++ b/src/Console/Generators/MakeMigrationCommand.php @@ -129,8 +129,8 @@ protected function getStubContent() protected function formatContent($content) { return str_replace( - ['{{migrationName}}', '{{table}}'], - [$this->container['migrationName'], $this->container['table']], + ['{{className}}', '{{table}}'], + [$this->container['className'], $this->container['table']], $content ); }