mirror of
https://github.com/v2board/v2board.git
synced 2025-06-13 21:28:27 +08:00
commit message
This commit is contained in:
17
app/Http/Controllers/Guest/PlanController.php
Executable file
17
app/Http/Controllers/Guest/PlanController.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Guest;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Plan;
|
||||
|
||||
class PlanController extends Controller
|
||||
{
|
||||
public function index (Request $request) {
|
||||
$plan = Plan::where('show', 1)->get();
|
||||
return response([
|
||||
'data' => $plan
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user