Skip to content

Commit

Permalink
Get Column Listing issue is fixed.
Browse files Browse the repository at this point in the history
#6 #8 #12  error fixed.
  • Loading branch information
awais-vteams authored Mar 8, 2022
1 parent 555e896 commit a567698
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 = DB::select('SHOW COLUMNS FROM ' . $this->table);
$this->tableColumns = Schema::getColumnListing($this->table);
}

return $this->tableColumns;
Expand Down

0 comments on commit a567698

Please sign in to comment.