diff --git a/src/MigBuilder/Util.php b/src/MigBuilder/Util.php index 4f0b9d4..3141bcb 100644 --- a/src/MigBuilder/Util.php +++ b/src/MigBuilder/Util.php @@ -8,7 +8,13 @@ class Util { public static function firstUpper($name, $evenFirstOne = true){ $name = (stripos($name, '_') === false) ? Str::snake($name) : $name; + + $processedName = Str::of($name)->camel(); + + if ($evenFirstOne === false) { + return $processedName; + } - return ucfirst(Str::of($name)->camel()); + return ucfirst($processedName); } }