Skip to content

Instantly share code, notes, and snippets.

@worstn8mare
Created March 19, 2018 00:42
Show Gist options
  • Select an option

  • Save worstn8mare/822cb058d143d8ccc9646ff46570aa3e to your computer and use it in GitHub Desktop.

Select an option

Save worstn8mare/822cb058d143d8ccc9646ff46570aa3e to your computer and use it in GitHub Desktop.
@foreach (['danger', 'warning', 'success', 'info'] as $message)
@if(Session::has('alert-' . $message))
<p class="alert alert-{{$message}}" style="padding:5px;height:24px;position: fixed;z-index:100;left:0px;right:0px;margin: 0px;top:112px;">
{{ Session::get('alert-' . $message) }}
</p>
<br>
@endif
@endforeach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment