phpvms/app/Http/Controllers/Api/StatusController.php
2018-08-26 16:40:04 +00:00

24 lines
435 B
PHP

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