adrema/app/Member/MemberController.php

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