> */ public function handle(ActionRequest $request): LengthAwarePaginator { $token = str($request->header('Authorization'))->replace('Bearer ', '')->toString(); $credentials = json_decode(Crypt::decryptString($token)); $api = Nami::login($credentials->mglnr, $credentials->password); $results = NamiSearchAction::run($api, $request->input('page', 1), $request->except('page'), 50); $results->transform(fn ($member) => ['id' => $member->memberId, 'name' => $member->firstname . ' ' . $member->lastname]); return $results; } }