PHPackages                             jubayed/laravel-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. jubayed/laravel-notify

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

jubayed/laravel-notify
======================

toastr.js, pnotify.js flush notifications for Laravel

195PHP

Since Feb 9Pushed 5y agoCompare

[ Source](https://github.com/jubayed/laravel-notify)[ Packagist](https://packagist.org/packages/jubayed/laravel-notify)[ RSS](/packages/jubayed-laravel-notify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Notify notification package for Laravel
=======================================

[](#notify-notification-package-for-laravel)

Install
-------

[](#install)

You can install the package using composer

```
$ composer require jubayed/laravel-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' => [
    ...
    Jubayed\Notify\NotifyServiceProvider::class
    ...
];
```

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

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

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:

```
