[英]Sucess message is not getting displayed in laravel
重定向到同一頁面后發送電子郵件后,我想顯示成功消息。 這是我的代碼:
return redirect('currentshowreport?showid='.$show_id)->with('success','Email sent successfully');
我將重定向到指定的頁面,但未顯示成功消息。 如何實現呢?
嘗試這個:
@if (session('success'))
<div class="alert alert-success">
{{ session('success') }}
</div>
@endif
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.