public function verify(array $credentials, Closure $callback)
    {
        // If the responses from the validate method is not a user instance, we will
        // assume that it is a redirect and simply return it from this method and
        // the user is properly redirected having an error message on the post.
        $user = $this->validateEmailVerification($credentials);

        if (! $user instanceof CanVerifyEmailContract) {
            return $user;
        }

        if($callback($user)) {

            $this->events->dispatch(new UserVerified($user));

        }

        return static::VERIFIED;
    }
public function verify(array $credentials, Closure $callback)
    {
        // If the responses from the validate method is not a user instance, we will
        // assume that it is a redirect and simply return it from this method and
        // the user is properly redirected having an error message on the post.
        $user = $this->validateEmailVerification($credentials);

        if (! $user instanceof CanVerifyEmailContract) {
            return $user;
        }

        if($callback($user)) {

            $this->events->dispatch(new UserVerified($user));

        }

        return static::VERIFIED;
    }
public function verify ( array $ credentials , Closure $ callback ) { // If the responses from the validate method is not a user instance, we will // assume that it is a redirect and simply return it from this method and // the user is properly redirected having an error message on the post. $ user = $ this -> validateEmailVerification ( $ credentials ) ; if ( ! $ user instanceof CanVerifyEmailContract ) { return $ user ; } if ( $ callback ( $ user ) ) { $ this -> events -> dispatch ( new UserVerified ( $ user ) ) ; } return static :: VERIFIED ; }
Verify the user for the given token.

@param  array  $credentials
@param  \Closure  $callback
@return mixed
Verify the user for the given token .