Laravel 5 echo out session variable containing html in blade

May this example will help you. Try this

 @if (session('Error'))
     <div class="alert alert-success">
         {{ session('Error') }}
     </div>
@endif

To show the rendered HTML you should use {!! $variable->coontent !!} in your view, and this gonna convert your HTML text to render


I would recommend returning just the error message then in your view create the div. So if you were to change the layout of the view, you would it in one place.

@if(Session::has('error'))
<div class="alert alert-danger">
  {{ Session::get('error')}}
</div>
@endif

hope this help.