【发布时间】:2017-01-17 14:24:46
【问题描述】:
您好朋友需要帮助如何在 laravel 5.1 中显示成功消息,我已经应用它工作但两次显示是什么原因。这是我的 layout.balde.php 代码
@if (session()->has('success'))
<div class="alert-success" id="popup_notification">
<strong>{!! trans('main.message') !!}</strong>{{ session('success') }}
</div>
@endif 这是我的控制器页面代码:
return Redirect::route($this->cdroute, array($customer_id))->with('success',trans($this->updatemsg));
【问题讨论】:
标签: php laravel-5.1