From 5736a2c53c5534cceb03d97ce9613aacb97c810c Mon Sep 17 00:00:00 2001 From: Muhammad Awais Date: Tue, 8 Mar 2022 19:13:11 +0500 Subject: [PATCH] Update GeneratorCommand.php --- src/Commands/GeneratorCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/GeneratorCommand.php b/src/Commands/GeneratorCommand.php index d5c511c..a3a422a 100644 --- a/src/Commands/GeneratorCommand.php +++ b/src/Commands/GeneratorCommand.php @@ -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;