Created
January 12, 2021 10:15
-
-
Save brendonexus/a1ebbaec843bfeb6af37d537e4120710 to your computer and use it in GitHub Desktop.
Blade template for session/flash messages in Laravel 8 & BS5
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('success')) | |
<div class="alert alert-success" role="alert">{{ session('success') }}</div> | |
@endif | |
@if(session('error')) | |
<div class="alert alert-danger" role="alert">{{ session('error') }}</div> | |
@endif | |
@if(session('warning')) | |
<div class="alert alert-warning" role="alert">{{ session('warning') }}</div> | |
@endif | |
@if(session('info')) | |
<div class="alert alert-info" role="alert">{{ session('info') }}</div> | |
@endif | |
<!-- ensure you include the message file in your template --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment