src/Foundation/Auth/VerifiesEmails.php
public function verify($token)
    {
        $response = VerifyEmail::verify(Auth::user(), $token);

        switch ($response) {
            case VerifyEmail::EMAIL_VERIFIED:
                return redirect($this->redirectPath())->with('status', trans($response));

            default:
                return redirect()->back()
                            ->withErrors(['email' => trans($response)]);
        }
    }
public function verify($token)
    {
        $response = VerifyEmail::verify(Auth::user(), $token);

        switch ($response) {
            case VerifyEmail::EMAIL_VERIFIED:
                return redirect($this->redirectPath())->with('status', trans($response));

            default:
                return redirect()->back()
                            ->withErrors(['email' => trans($response)]);
        }
    }
public function verify ( $ token ) { $ response = VerifyEmail :: verify ( Auth :: user ( ) , $ token ) ; switch ( $ response ) { case VerifyEmail :: EMAIL_VERIFIED : return redirect ( $ this -> redirectPath ( ) ) -> with ( 'status' , trans ( $ response ) ) ; default : return redirect ( ) -> back ( ) -> withErrors ( [ 'email' => trans ( $ response ) ] ) ; } }
Attempt to verify a user.

@param  string  $token
@return \Illuminate\Http\Response
Attempt to verify a user .