Skip to content

Commit 0185921

Browse files
some fixes
1 parent b9e695d commit 0185921

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Console/Commands/LaravelProjectAssist/MakeDataClass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ protected function collectFields(&$hidden): array
5151
$field = $this->ask("Add field (e.g., string,id)?");
5252
$fields[] = $field;
5353
if ($field == "/auto") {
54+
array_pop($fields);
5455
$fields = array_merge($fields, ["id", 'hashedId', "creationDate"]);
5556
$hidden[] = "id";
5657
}

0 commit comments

Comments
 (0)