login(); if (!$member->hasNami || !$member->group->hasNami) { return; } try { $localMember = app(PullMemberAction::class)->handle($member->group->nami_id, $member->nami_id); } catch (Skippable $e) { return; } app(PullMembershipsAction::class)->handle($localMember); } public function asController(ActionRequest $request, Member $member): RedirectResponse|Response { $this->handle( $member, app(NamiSettings::class), ); return redirect()->back(); } }