Created
March 22, 2018 17:17
-
-
Save marufmax/3e2bf2d7075bc90a029b85eeaad5cc12 to your computer and use it in GitHub Desktop.
Laravel Bootstrap Session Success and Error Flash Messages
This file contains 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(isset($errors)&&count(errors) > 0) | |
<div class="alert alert-dismissible alert-danger fade show"> | |
<button type="button" class="close" data-dismiss="alter" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
@foreach($errors->all() as $error) | |
<li> | |
<strong>{!! $error !!}</strong> | |
</li> | |
@endforeach | |
</div> | |
@endif |
This file contains 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(session()->has('success')) | |
<div class="alert alert-dismissible alert-success fade show"> | |
<button type="button" class="close" data-dismiss="alter" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
<strong> | |
{!! session()->get('success') !!} | |
</strong> | |
</div> | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment