mirror of
https://github.com/crivion/laranode.git
synced 2026-06-09 19:32:23 +08:00
Users can create websites (add domains to be hosted)
This commit is contained in:
18
app/Http/Controllers/PHPManagerController.php
Normal file
18
app/Http/Controllers/PHPManagerController.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user