diff --git a/src/Commands/DtoMakeCommand.php b/src/Commands/DtoMakeCommand.php index 2f6c695..329955e 100644 --- a/src/Commands/DtoMakeCommand.php +++ b/src/Commands/DtoMakeCommand.php @@ -127,6 +127,10 @@ protected function getProperties(string $requestClass) // TODO: Sort nulls here to be prepended (need to create array first) foreach ($requestRules as $property => $rules) { + if (str_contains($property, '.')) { + continue; + } + if (str_ends_with('_id', $property)) { $property = preg_replace('/_id$/', '', $property); }