mirror of
https://github.com/crivion/laranode.git
synced 2026-05-08 14:36:52 +08:00
19 lines
336 B
PHP
19 lines
336 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\PhpVersion;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class PHPManagerController extends Controller
|
|
{
|
|
|
|
public function getVersions(): JsonResponse
|
|
{
|
|
$versions = PhpVersion::active()->get();
|
|
|
|
return response()->json($versions);
|
|
}
|
|
}
|