phpvms/app/Http/Controllers/Api/StatusController.php

17 lines
309 B
PHP
Raw Normal View History

2017-08-15 07:26:20 +08:00
<?php
namespace App\Http\Controllers\Api;
use PragmaRX\Version\Package\Facade as Version;
2017-08-15 07:26:20 +08:00
class StatusController extends RestController
2017-08-15 07:26:20 +08:00
{
public function status()
{
return response()->json([
'version' => Version::compact(),
'php' => PHP_VERSION,
]);
2017-08-15 07:26:20 +08:00
}
}