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 ); }