Created
May 28, 2014 03:27
-
-
Save fer-ri/eca6f95b9e13a6f6f369 to your computer and use it in GitHub Desktop.
Blade Template for Handle Flash Session Message In Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @if ($errors->any()) | |
| <div class="alert alert-error alert-block"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <h4>Error</h4> | |
| Please check the form below for errors | |
| </div> | |
| @endif | |
| @if ($message = Session::get('success')) | |
| <div class="alert alert-success alert-block"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <h4>Success</h4> | |
| {{ $message }} | |
| </div> | |
| @endif | |
| @if ($message = Session::get('error')) | |
| <div class="alert alert-error alert-block"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <h4>Error</h4> | |
| {{ $message }} | |
| </div> | |
| @endif | |
| @if ($message = Session::get('warning')) | |
| <div class="alert alert-warning alert-block"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <h4>Warning</h4> | |
| {{ $message }} | |
| </div> | |
| @endif | |
| @if ($message = Session::get('info')) | |
| <div class="alert alert-info alert-block"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <h4>Info</h4> | |
| {{ $message }} | |
| </div> | |
| @endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment