adrema/app/Member/MemberController.php

16 lines
362 B
PHP
Raw Normal View History

2020-06-02 23:45:25 +02:00
<?php
namespace App\Member;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class MemberController extends Controller
{
public function index(Request $request) {
return \Inertia::render('Member/Index', [
'data' => MemberResource::collection(Member::search($request->query('search', null))->get())
]);
}
}