$event->user instanceof MustVerifyEmail 未理解含义,请教下各位。
// 如果 user 是继承于 MustVerifyEmail 并且还未激活的话
if ($event->user instanceof MustVerifyEmail && ! $event->user->hasVerifiedEmail()) {
// 发送邮件认证消息通知(认证邮件)
$event->user->sendEmailVerificationNotification();
}
不理解这个用法, 具体是怎么进行运算的
$event->user instanceof MustVerifyEmail
推荐文章: