v2board/app/Http/Controllers/Guest/PlanController.php

19 lines
347 B
PHP
Raw Normal View History

2019-10-29 15:33:36 +08:00
<?php
namespace App\Http\Controllers\Guest;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Plan;
class PlanController extends Controller
{
2020-01-11 13:36:52 +08:00
public function fetch(Request $request)
{
2019-10-29 15:33:36 +08:00
$plan = Plan::where('show', 1)->get();
return response([
'data' => $plan
]);
}
}