我是Laravel公司的新员工,我有下一个代码:
return redirect()->back()->with('erriorIMG','filetype not is supported');在刀片文件中:
@if(isset($erriorIMG))
<div class="alert alert-danger" role="alert">
{{ $erriorIMG }}
</div>
@else
<h3>sadasd</h3>
@endif但是不能工作,当我使用重定向()->back()时,我不能传递参数?
发布于 2015-03-20 05:19:23
这是一个闪存数据,所以试试这个:
Session::get('erriorIMG')参考资料:
https://stackoverflow.com/questions/29159875
复制相似问题