public function show($token)
    {
        $memberInvitation = MemberInvitation::where('token', $token)->first();
        if (empty($memberInvitation)) {
            return view('combine::response.member-invitation.not-found');
        }
        switch ($memberInvitation->member->user->status) {
            case 'Invited':
                return $this->respondAcceptNewUser($memberInvitation);
            case 'Accepted':
                return $this->respondOnboardNewUser($memberInvitation);
            default:
                return $this->respondAcceptExistingUser($memberInvitation);
        }
    }
public function show($token)
    {
        $memberInvitation = MemberInvitation::where('token', $token)->first();
        if (empty($memberInvitation)) {
            return view('combine::response.member-invitation.not-found');
        }
        switch ($memberInvitation->member->user->status) {
            case 'Invited':
                return $this->respondAcceptNewUser($memberInvitation);
            case 'Accepted':
                return $this->respondOnboardNewUser($memberInvitation);
            default:
                return $this->respondAcceptExistingUser($memberInvitation);
        }
    }
public function show ( $ token ) { $ memberInvitation = MemberInvitation :: where ( 'token' , $ token ) -> first ( ) ; if ( empty ( $ memberInvitation ) ) { return view ( 'combine::response.member-invitation.not-found' ) ; } switch ( $ memberInvitation -> member -> user -> status ) { case 'Invited' : return $ this -> respondAcceptNewUser ( $ memberInvitation ) ; case 'Accepted' : return $ this -> respondOnboardNewUser ( $ memberInvitation ) ; default : return $ this -> respondAcceptExistingUser ( $ memberInvitation ) ; } }
Fetches an invitation via token and shows a form for setting a password

@param string $token Invitation token
@return \Illuminate\Http\Response
Fetches an invitation via token and shows a form for setting a password