diff --git a/src/Http/Controllers/VersionController.php b/src/Http/Controllers/VersionController.php index 21fb830..794dedb 100644 --- a/src/Http/Controllers/VersionController.php +++ b/src/Http/Controllers/VersionController.php @@ -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; } }