Skip to content
This repository was archived by the owner on Aug 2, 2024. It is now read-only.

Commit 24c3f4a

Browse files
authored
[FIX] fixed error in DatabaseController
Removed a chunk of code
1 parent fc62e4f commit 24c3f4a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Http/Controllers/DatabaseController.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,6 @@ public function getTableData()
9494
];
9595
}
9696

97-
if (config('database.connections.mysql.prefix')) {
98-
config(['database.connections.mysql.prefix' => '']);
99-
\Illuminate\Support\Facades\DB::purge();
100-
}
101-
102-
// Usage of the DB facade should be avoided since this uses the default config, and not the prequel config. @TODO refactor
103-
return [
104-
"table" => $this->qualifiedName,
105-
"structure" => app(DatabaseTraverser::class)->getTableStructure(
106-
$this->databaseName,
107-
$this->tableName
108-
),
109-
"data" => DB::table($this->qualifiedName)->paginate(config('prequel.pagination')),
110-
];
111-
112-
}
113-
114-
11597
/**
11698
* Find given value in given column with given operator.
11799
* @return mixed

0 commit comments

Comments
 (0)