diff --git a/app/Http/Controllers/Api/StatusController.php b/app/Http/Controllers/Api/StatusController.php index 30032e60..a8f1d9fd 100644 --- a/app/Http/Controllers/Api/StatusController.php +++ b/app/Http/Controllers/Api/StatusController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers\Api; +use PragmaRX\Version\Package\Facade as Version; use App\Http\Controllers\AppBaseController; @@ -9,9 +10,9 @@ class StatusController extends AppBaseController { public function status() { - return response()->json( - ['version' => ''], - 200 - ); + return response()->json([ + 'version' => Version::compact(), + 'php' => PHP_VERSION, + ]); } }