PHPackages                             kallbuloso/notify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. kallbuloso/notify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

kallbuloso/notify
=================

toastr.js, pnotify.js flush notifications for Laravel 5, 6, 7 and Lumen

v1.0.0(6y ago)0141MITPHPPHP &gt;=7.0

Since Apr 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kallbuloso/notify)[ Packagist](https://packagist.org/packages/kallbuloso/notify)[ Docs](https://github.com/kallbuloso/notify)[ RSS](/packages/kallbuloso-notify/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (4)Versions (2)Used By (1)

Notify notification package for Laravel 5 and Lumen
===================================================

[](#notify-notification-package-for-laravel-5-and-lumen)

👀 This package helps you to add notifications to your Laravel 5 and Lumen projects.

 [![Latest Stable Version](https://camo.githubusercontent.com/3c1e36e1abe0e7f0a0552cbf6d83441af6e1eab3a8ecbde0018f161d9df7b37a/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6c62756c6f736f2f6e6f746966792f762f737461626c65)](https://packagist.org/packages/kallbuloso/notify) [![Latest Unstable Version](https://camo.githubusercontent.com/62375541d58347f46b3f92ae9426a6b7704030525321a803a9bc74d152dcda33/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6c62756c6f736f2f6e6f746966792f762f756e737461626c65)](https://packagist.org/packages/kallbuloso/notify) [![Build Status](https://camo.githubusercontent.com/d04998b092523d23affe884d9700cafc57fc12afc417a7329e028bb1c3ee7879/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616c6c62756c6f736f2f6e6f746966792f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kallbuloso/notify/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/46a303c7573d3e5bce44a04cc1cb86778e1824e5a4f6b76ad278709b059811ab/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616c6c62756c6f736f2f6e6f746966792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kallbuloso/notify/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/80426af3b2200c5a02e84ba818fd6185e718f19e3901f17c0cf4b07316e67632/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616c6c62756c6f736f2f6e6f746966792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kallbuloso/notify/?branch=master) [![Total Downloads](https://camo.githubusercontent.com/4d7d32d77ad120ae29f96f61186630d257b1c6c1ab1df9d2be5887438b2baae0/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6c62756c6f736f2f6e6f746966792f646f776e6c6f616473)](https://packagist.org/packages/kallbuloso/notify) [![License](https://camo.githubusercontent.com/621f89a9cc2fe9e3e78d794646d1f1cc08c2598e158afc9c038034f216a74d3d/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6c62756c6f736f2f6e6f746966792f6c6963656e7365)](https://packagist.org/packages/kallbuloso/notify)

[![notify](https://user-images.githubusercontent.com/10859693/39634578-1a9f121a-4fb3-11e8-8863-d64fad42901b.png)](https://user-images.githubusercontent.com/10859693/39634578-1a9f121a-4fb3-11e8-8863-d64fad42901b.png)

Install
-------

[](#install)

You can install the package using composer

```
$ composer require kallbuloso/notify
```

Then add the service provider to `config/app.php`. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.

```
'providers' => [
    ...
    kallbuloso\Notify\NotifyServiceProvider::class
    ...
];
```

As optional if you want to modify the default configuration, you can publish the configuration file:

```
$ php artisan vendor:publish --provider='kallbuloso\Notify\NotifyServiceProvider' --tag="config"
```

### For Lumen :

[](#for-lumen-)

1. In `bootstrap/app.php`
    - uncomment `$app->withFacades();`
    - add bindings for ToastrServiceProvider : `$app->register(kallbuloso\Notify\NotifyServiceProvider::class);`
2. Add `config/session.php`, since it is not present in `Lumen` by default. You can take `session.php` from [Laravel Official Repository](https://github.com/laravel/laravel/blob/master/config/session.php)

Usage:
------

[](#usage)

Include jQuery and your notification plugin assets in your view template:

1. Add your styles links tag or `@notify_css`
2. Add your scripts links tags or `@notify_js`
3. Add `@notify_render` to render your notification
4. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error

```
// Display an info toast with no title
notify()->info('Are you the 6 fingered man?')
```

as an example:

```
