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) {
|
2021-04-11 01:25:40 +02:00
|
|
|
session()->put('menu', 'member');
|
|
|
|
session()->put('title', 'Mitglieder');
|
|
|
|
|
|
|
|
return \Inertia::render('member/Index', [
|
|
|
|
'data' => MemberResource::collection(Member::search($request->query('search', null))->paginate(20))
|
2020-06-02 23:45:25 +02:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|