We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f240366 commit 6cfb6d8Copy full SHA for 6cfb6d8
src/Commands/MakeFactory.php
@@ -26,10 +26,10 @@ class MakeFactory extends Command
26
27
use CustomMySqlQueries;
28
29
- public function writeSetter(string $setterStub, string $attributeName)
+ public function writeSetter(string $setterStub, string $columnName): string
30
{
31
return str_replace(['{{ SetterName }}', '{{ AttributeName }}'],
32
- [ucfirst($attributeName), $attributeName],
+ [ucfirst($columnName), snake_case($columnName)],
33
$setterStub);
34
}
35
0 commit comments