johanleroux / laravel-notify
Flexible flash notifications for Laravel
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/johanleroux/laravel-notify
Requires
- php: >=5.4.0
- illuminate/support: ~5.0
This package is not auto-updated.
Last update: 2026-01-10 06:27:09 UTC
README
Install
composer require johanleroux/laravel-notify
Usage
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
Issues and contribution
Just submit an issue or pull request through GitHub. Thanks!
License
The MIT License (MIT). Please see License File for more information.