What it looks like

what-it-looks-like

controller.php

$request->session()->flash(str_random(4), ['type' => 'warning', 'message' => 'Testing a warning message']);
$request->session()->flash(str_random(4), ['type' => 'success', 'message' => 'Success is in the eye of the beer holder']);
$request->session()->flash(str_random(4), ['type' => 'info', 'message' => 'Info, info man!']);
$request->session()->flash(str_random(4), ['type' => 'danger', 'message' => 'Danger, danger, high voltage!']);

layouts/app.blade.php

<div class="container flash-message">
  @if(Session::has('flash.new'))
      @foreach (Session::get('flash.new') as $flashKey)
       <p class="alert alert-{{ Session::get($flashKey)['type'] }}">
        {{ Session::get($flashKey)['message'] }}
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
      </p>
    @endforeach
  @endif
</div> <!-- end .flash-message -->