I did a redirection in laravel:
return redirect('admin')->with($returnData);
$ returnData is a line containing the bootstrap div file with the result from the controller. Almost everything works, except when the page loads again, it shows the html on the page as if it were text, brackets and all that. If I use this:
@if(!empty(Session::get('error'))) {{ Session::get('error')}} @endif
Then it shows that it is pure text. If I change it to
<?php if(!empty(Session::get('error'))) { echo Session::get('error'); } ?>
It works great. I support this well so, but I would rather use Blade / Laravel as it should have been used, so I was wondering if there is a way for the @if operator to display the displayed html rather than the text version?
Scott source share