24 lines
435 B
PHP
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,
|
|
]);
|
|
}
|
|
}
|