2017-08-15 07:26:20 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
use App\Interfaces\Controller;
|
2017-12-29 12:49:47 +08:00
|
|
|
use PragmaRX\Version\Package\Facade as Version;
|
2017-08-15 07:26:20 +08:00
|
|
|
|
2018-03-20 09:50:40 +08:00
|
|
|
/**
|
|
|
|
* Class StatusController
|
|
|
|
*/
|
|
|
|
class StatusController extends Controller
|
2017-08-15 07:26:20 +08:00
|
|
|
{
|
2018-02-21 12:33:09 +08:00
|
|
|
/**
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
*/
|
2017-08-15 07:26:20 +08:00
|
|
|
public function status()
|
|
|
|
{
|
2017-12-29 12:49:47 +08:00
|
|
|
return response()->json([
|
|
|
|
'version' => Version::compact(),
|
2018-03-20 09:50:40 +08:00
|
|
|
'php' => PHP_VERSION,
|
2017-12-29 12:49:47 +08:00
|
|
|
]);
|
2017-08-15 07:26:20 +08:00
|
|
|
}
|
|
|
|
}
|