Skip to content

Commit

Permalink
Fix migrate command
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidesu committed Feb 3, 2016
1 parent 6844a02 commit 502525a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/stubs/migration.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Generators/MakeMigrationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 502525a

Please sign in to comment.