persist($member, $settings); return redirect()->back(); } public function destroy(Member $member, Membership $membership): RedirectResponse { auth()->user()->api()->group($member->group->nami_id)->member($member->nami_id) ->deleteMembership($membership->nami_id); $membership->delete(); $member->syncVersion(auth()->user()->api()); return redirect()->back(); } }