diff --git a/src/Coders/Model/Model.php b/src/Coders/Model/Model.php index cedc8344..0b0fd956 100644 --- a/src/Coders/Model/Model.php +++ b/src/Coders/Model/Model.php @@ -254,7 +254,7 @@ protected function parseColumn(Fluent $column) // TODO: Check type cast is OK $cast = $column->type; - $propertyName = $this->usesPropertyConstants() ? 'self::'.strtoupper($column->name) : $column->name; + $propertyName = $this->usesPropertyConstants() ? 'self::'.strtoupper(Str::snake($column->name)) : $column->name; // Due to some casting problems when converting null to a Carbon instance, // we are going to treat Soft Deletes field as string.