Skip to content

Commit

Permalink
Merge pull request #1 from djekl/patch-1
Browse files Browse the repository at this point in the history
Update SQL Version Call
  • Loading branch information
Kussie authored Nov 2, 2022
2 parents 5a37cbe + 7e91d7b commit e376201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/VersionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private function getDatabase()
return 'Unkown';
}

$results = DB::select(DB::raw("select version()"));
$results = DB::select(DB::raw("select version() as version"));

return $results[0]->{'version()'};
return $results[0]->version;
}
}

0 comments on commit e376201

Please sign in to comment.