update: api version

This commit is contained in:
v2board
2023-06-12 02:32:49 +08:00
parent 32eaf301fe
commit 4c97d7e429
74 changed files with 449 additions and 496 deletions

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers\V1\Guest;
use App\Http\Controllers\Controller;
use App\Models\Plan;
use Illuminate\Http\Request;
class PlanController extends Controller
{
public function fetch(Request $request)
{
$plan = Plan::where('show', 1)->get();
return response([
'data' => $plan
]);
}
}