public function confirmEmail(string $token, string $email)
    {
        Auth::user()->confirmPetition($token, $email);

        Auth::logout();

        return redirect()->route('user.index');
    }
public function confirmEmail(string $token, string $email)
    {
        Auth::user()->confirmPetition($token, $email);

        Auth::logout();

        return redirect()->route('user.index');
    }
public function confirmEmail ( string $ token , string $ email ) { Auth :: user ( ) -> confirmPetition ( $ token , $ email ) ; Auth :: logout ( ) ; return redirect ( ) -> route ( 'user.index' ) ; }
Confirms the users's new email address.

@param  string $token
@param  string $email

@return void
Confirms the users s new email address .