Getting pdo object, making sure the database connection is valid

parent 7ae4c6a2
......@@ -169,7 +169,7 @@ class ConfigureDatabase implements SetupScript
protected function databaseConnectionIsValid()
{
try {
app('db')->reconnect();
app('db')->reconnect()->getPdo();
return true;
} catch (PDOException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment