Skip to content

Commit 6cfb6d8

Browse files
committed
Bug Fixed in MakeFactory Function for Detecting stdClass Attributes
1 parent f240366 commit 6cfb6d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/MakeFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class MakeFactory extends Command
2626

2727
use CustomMySqlQueries;
2828

29-
public function writeSetter(string $setterStub, string $attributeName)
29+
public function writeSetter(string $setterStub, string $columnName): string
3030
{
3131
return str_replace(['{{ SetterName }}', '{{ AttributeName }}'],
32-
[ucfirst($attributeName), $attributeName],
32+
[ucfirst($columnName), snake_case($columnName)],
3333
$setterStub);
3434
}
3535

0 commit comments

Comments
 (0)