I did a redirect in laravel:
return redirect('admin')->with($returnData);
$returnData is a string that contains a bootstrap info div with the result from the controller. Almost everything is working except when the page loads again it shows the html on the page as if it were text, brackets and everything. If I use this:
@if(!empty(Session::get('error'))) {{ Session::get('error')}} @endif
Then it shows is as pure text. If I change it to
<?php if(!empty(Session::get('error'))) { echo Session::get('error'); } ?>
它很好用.我可以这样保存它,但我宁愿使用Blade/Laravel作为应该使用的工具,所以我想知道是否有办法让@if语句显示呈现的html而不是文本版本?