first(); if ($invitation) { if ((bool)$invitation->contact->client->getSetting('enable_client_portal_password') !== false) { $this->middleware('auth:contact'); } else { auth()->guard('contact')->login($invitation->contact, false); } $invitation->markViewed(); return redirect()->route('client.'.$entity.'.show', [$entity => $this->encodePrimaryKey($invitation->{$key})]); } else { abort(404); } } public function routerForIframe(string $entity, string $client_hash, string $invitation_key) { } }