【发布时间】:2021-09-23 19:44:31
【问题描述】:
我正在尝试输出使用 laravel 密码重置发送密码重置电子邮件时返回的消息。我收到email has been sent! 的正确消息,但在重定向回来时,没有显示闪存消息。我确实看到成功保存到password_resets_table。
发送成功后控制器返回
return $status === Password::RESET_LINK_SENT
? back()->with(['status' => __($status)])
: back()->withErrors(['Email' => __($status)]);
它被重定向回检查状态的刀片文件
@if(!empty($status))
<div class="alert alert-success"> {{ $status }}</div>
@endif
【问题讨论】:
标签: laravel-8