Skip to content

Commit

Permalink
Update GeneratorCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
awais-vteams authored Mar 8, 2022
1 parent 2394eee commit 5736a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function buildLayout(): void
protected function getColumns()
{
if (empty($this->tableColumns)) {
$this->tableColumns = Schema::getColumnListing($this->table);
$this->tableColumns = DB::select('SHOW COLUMNS FROM ' . $this->table);
}

return $this->tableColumns;
Expand Down

0 comments on commit 5736a2c

Please sign in to comment.