Skip to content

Commit

Permalink
LARG-3 fix(command): Fix option to generate multiple resources at once
Browse files Browse the repository at this point in the history
  • Loading branch information
alibori committed Apr 16, 2024
1 parent e297daa commit 67b5db4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/GenerateApiResourceCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 67b5db4

Please sign in to comment.