如果电子邮件未经验证,则显示消息Laravel
我需要做一些事情,比如如果电子邮件被验证,在主页上显示带有一些文本的如果电子邮件未经验证,则显示消息Laravel,laravel,email,Laravel,Email,我需要做一些事情,比如如果电子邮件被验证,在主页上显示带有一些文本的,如果可能的话,不显示路由 @if(电子邮件已验证) 你好 @恩迪夫 @否则 您需要验证您的电子邮件地址这取决于您如何知道用户已被验证。如果您有一个数据库列,用于在可为空的日期时间发送电子邮件的用户,您可以执行以下操作: //The authenticated user is verified, since there is a datetime @if(Auth::user()->email_verified_at !
,如果可能的话,不显示路由
@if(电子邮件已验证)
你好
@恩迪夫
@否则
您需要验证您的电子邮件地址
这取决于您如何知道用户已被验证。如果您有一个数据库列,用于在可为空的日期时间发送电子邮件的用户,您可以执行以下操作:
//The authenticated user is verified, since there is a datetime
@if(Auth::user()->email_verified_at != null)
//Do something
@else
//Do something else, since the authenticated user is not verified
@endif
这取决于您如何知道用户已被验证。如果您有一个数据库列,用于在可为空的日期时间发送电子邮件的用户,您可以执行以下操作:
//The authenticated user is verified, since there is a datetime
@if(Auth::user()->email_verified_at != null)
//Do something
@else
//Do something else, since the authenticated user is not verified
@endif