Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
celia514 committed Jul 25, 2024
2 parents 67d7e03 + 796c4c2 commit ef12493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Resources/ScaffoldResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,14 @@ public static function overwriteModelFile($filePath, $data)
file_put_contents($filePath, $content);
}
}

public static function getColumn($data)
{
$fields = [];
foreach ($data['Table'] as $column) {
$fields[] = "{$column['name']}";
}

return "['" . implode("','", $fields) . "']";
}
}

0 comments on commit ef12493

Please sign in to comment.