diff --git a/src/Console/GenerateApiResourceCommand.php b/src/Console/GenerateApiResourceCommand.php index f2c6bf9..f0cd2c2 100644 --- a/src/Console/GenerateApiResourceCommand.php +++ b/src/Console/GenerateApiResourceCommand.php @@ -147,6 +147,9 @@ protected function getPropertiesFromTable(Model $model): void return; } + $this->properties = []; + $this->php_docs_properties = []; + foreach ($columns as $column) { // Check if $column is an array to deal with Laravel 11 upgrade if (is_array($column)) {