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

Commit

Permalink
[FIX] fixed error in DatabaseController
Browse files Browse the repository at this point in the history
Removed a chunk of code
  • Loading branch information
lukadriel7 authored Jan 28, 2020
1 parent fc62e4f commit 24c3f4a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/Http/Controllers/DatabaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,6 @@ public function getTableData()
];
}

if (config('database.connections.mysql.prefix')) {
config(['database.connections.mysql.prefix' => '']);
\Illuminate\Support\Facades\DB::purge();
}

// Usage of the DB facade should be avoided since this uses the default config, and not the prequel config. @TODO refactor
return [
"table" => $this->qualifiedName,
"structure" => app(DatabaseTraverser::class)->getTableStructure(
$this->databaseName,
$this->tableName
),
"data" => DB::table($this->qualifiedName)->paginate(config('prequel.pagination')),
];

}


/**
* Find given value in given column with given operator.
* @return mixed
Expand Down

0 comments on commit 24c3f4a

Please sign in to comment.