Skip to content

Commit

Permalink
Merge pull request #2 from alibori/LARG-3-Add-option-to-create-multip…
Browse files Browse the repository at this point in the history
…le-resources-at-once

LARG-3 fix(command): Fix option to generate multiple resources at once
  • Loading branch information
alibori authored Apr 16, 2024
2 parents 35f0a34 + 67b5db4 commit 4daca42
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 4daca42

Please sign in to comment.