composer require johanleroux/laravel-notify
notify()->flash('Welcome back!', 'success');
notify()->information('Welcome back!');
notify()->success('Profile updated!');
notify()->warning('Invalid Data!');
notify()->danger('User Deleted!');
Within a view, you can now check if a flash message exists and output it.
@if (notify()->ready())
<div class="alert-box {{ notify()->type() }}">
{{ notify()->message() }}
</div>
@endif
Just submit an issue or pull request through GitHub. Thanks!
The MIT License (MIT). Please see License File for more information.