📜  Api 中的 VerifyEmailController - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:21.095000             🧑  作者: Mango

代码示例1
route('id'));

        if ($user->hasVerifiedEmail()) {
            return redirect(env('FRONT_URL') . '/email/verify/already-success');
        }

        if ($user->markEmailAsVerified()) {
            event(new Verified($user));
        }

        return redirect(env('FRONT_URL') . '/email/verify/success');
    }
}