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

Commit

Permalink
Merge pull request #96 from lukadriel7/fix-databasecontroller-error
Browse files Browse the repository at this point in the history
[FIX] fixed error in DatabaseController
  • Loading branch information
Quinten authored Jan 29, 2020
2 parents fc62e4f + 24c3f4a commit 15cd3cb
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

3 comments on commit 15cd3cb

@gboquizosanchez
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, make a tag about this PR. Thanks!

@QuintenJustus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, make a tag about this PR. Thanks!

Check out Prequel 1.22.3!

@gboquizosanchez
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tag 1.22.3 This change is not contained on it

Please sign in to comment.