Skip to content

Commit

Permalink
Update ModelFromTableCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-mcmullen authored Feb 20, 2020
1 parent 4414f0a commit f6efcfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/ModelFromTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ public function getAllTables()
$tables = [];

if (strlen($this->options['connection']) <= 0) {
$tables = collect(DB::select(DB::raw(("show full tables where Table_Type = 'BASE TABLE'"))))->flatten();
$tables = collect(DB::select(DB::raw("show full tables where Table_Type = 'BASE TABLE'")))->flatten();
} else {
$tables = collect(DB::connection($this->options['connection'])->select(DB::raw(("show full tables where Table_Type = 'BASE TABLE'"))))->flatten();
$tables = collect(DB::connection($this->options['connection'])->select(DB::raw("show full tables where Table_Type = 'BASE TABLE'")))->flatten();
}

$tables = $tables->map(function ($value, $key) {
Expand Down

0 comments on commit f6efcfd

Please sign in to comment.