Skip to content

Commit 2b78b7f

Browse files
committed
fix: singularity of some names
1 parent 1313823 commit 2b78b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MakeEnum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function handle(): int
6262
$enums = [];
6363
foreach ($columns as $_column) {
6464
if ($_column->DATA_TYPE == 'enum') {
65-
$enumClassName = studly_case(substr_replace($_column->TABLE_NAME, '', -1) . '_' . $_column->COLUMN_NAME);
65+
$enumClassName = studly_case(str_singular(ucfirst(camel_case($_column->TABLE_NAME))) . '_' . $_column->COLUMN_NAME);
6666
$enums[$enumClassName] = explode(',', str_replace(['enum(', '\'', ')'], ['', '', ''], $_column->COLUMN_TYPE));
6767

6868
$filenameWithPath = $relativeEntitiesPath . $enumClassName.'.php';

0 commit comments

Comments
 (0)