mascame / notify
Notify is a package to rapidly notificate your users about something using Bootstrap classes
Installs: 208
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mascame/notify
Requires
- php: >=5.4.0
- illuminate/support: >=4.2
This package is not auto-updated.
Last update: 2025-10-08 18:51:33 UTC
README
Notify is a package to rapidly notificate your users about something using Bootstrap classes
A nice alternative if this don't satisfy your needs
Installation
Require this package in your composer.json and run composer update:
"mascame/notify": "dev-master"
Add to app/config
:
// the Service Provider 'Mascame\Notify\NotifyServiceProvider' // the alias 'Notify' => '\Mascame\Notify\Notify'
Publish assets and config
php artisan config:publish mascame/notify
Usage
- Require bootstrap or compatible framework.
- Edit config file to your needs.
In template:
Notify::all(); // blade {{ Notify::all(); }}
In your logic:
// $autohide = false, $icon = null, $dismissable = false Notify::success('Successfuly notified!'); Notify::danger('Real danger!'); Notify::info('Informed!'); Notify::warning('Warning!'); Notify::loading('Loading...'); Notify::add($value, $type = 'success', $autohide = false, $icon = null, $dismissable = false);
A real world example:
// this will autohide and get the default values for icon and dismissable public function logout() { Auth::logout(); Notify::success('Successfuly logged out!', true); return Redirect::to('home'); }
License
MIT