login(); if ($membership->hasNami) { $settings->login()->deleteMembership( $member->nami_id, $api->membership($member->nami_id, $membership->nami_id) ); } $membership->delete(); if ($membership->hasNami) { $member->syncVersion(); } } public function asController(Member $member, Membership $membership, ActionRequest $request, NamiSettings $settings): RedirectResponse { $this->handle( $member, $membership, $settings, ); return redirect()->back(); } }