phpvms/app/Http/Controllers/Api/StatusController.php
2018-03-19 20:50:40 -05:00

25 lines
472 B
PHP

<?php
namespace App\Http\Controllers\Api;
use App\Interfaces\Controller;
use PragmaRX\Version\Package\Facade as Version;
/**
* Class StatusController
* @package App\Http\Controllers\Api
*/
class StatusController extends Controller
{
/**
* @return \Illuminate\Http\JsonResponse
*/
public function status()
{
return response()->json([
'version' => Version::compact(),
'php' => PHP_VERSION,
]);
}
}