Skip to content

Commit 4c99a07

Browse files
committed
Fixes a bug in the migrations
1 parent fb819b0 commit 4c99a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/CreateMigrationCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ protected function getPrimaryMethodName($type)
821821
protected function getCommandInput()
822822
{
823823
$tableName = trim($this->argument('table-name'));
824-
$className = trim($this->option('migration-class-name')) ?: sprintf('Create%sTable', ucfirst($tableName));
824+
$className = trim($this->option('migration-class-name')) ?: sprintf('Create%sTable', studly_case($tableName));
825825
$connection = trim($this->option('connection-name'));
826826
$engine = trim($this->option('engine-name'));
827827
$fields = trim($this->option('fields'));

0 commit comments

Comments
 (0)