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

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

yyqsg888/laravel-notify
=======================

Flexible flash notifications for Laravel

v2.4.1(2y ago)08MITBladePHP &gt;=8.0

Since Apr 15Pushed 2y agoCompare

[ Source](https://github.com/yyqsg888/laravel-notify)[ Packagist](https://packagist.org/packages/yyqsg888/laravel-notify)[ Fund](https://paypal.me/jvquilichini?locale.x=fr_FR)[ RSS](/packages/yyqsg888-laravel-notify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

[![](https://camo.githubusercontent.com/8ef34f284f56e5157d59dea3b752b9042cea56e73fb6ce47a669e4b217f5cead/68747470733a2f2f6c61726176656c2e636d2f696d616765732f6c61726176656c2d6e6f746966792e737667)](https://camo.githubusercontent.com/8ef34f284f56e5157d59dea3b752b9042cea56e73fb6ce47a669e4b217f5cead/68747470733a2f2f6c61726176656c2e636d2f696d616765732f6c61726176656c2d6e6f746966792e737667)

 [![Total Downloads](https://camo.githubusercontent.com/5be8854ce84b0f3c1cd5def42139cd9f8e4d5f3c01f395b1c59d0258f403a80b/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f642f746f74616c2e737667)](https://packagist.org/packages/mckenziearts/laravel-notify) [![Latest Stable Version](https://camo.githubusercontent.com/d34d6c09ca60942617715d2ddc17f0501b26139c0f8078dfa5ed5fb9b38837fa/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f762f737461626c652e737667)](https://packagist.org/packages/mckenziearts/laravel-notify) [![License](https://camo.githubusercontent.com/6cea64c433517588ddd3682ea90da590b3fc723c771fa42b4a045974dbe13bf4/68747470733a2f2f706f7365722e707567782e6f72672f6d636b656e7a6965617274732f6c61726176656c2d6e6f746966792f6c6963656e73652e737667)](https://packagist.org/packages/mckenziearts/laravel-notify)

Introduction
------------

[](#introduction)

Laravel Notify is a package that lets you add custom notifications to your project. A diverse range of notification design is available.

 [![](https://camo.githubusercontent.com/1e364dc548ca271248021716023f9269a24e7de50fa25809e57704a30b1168d7/68747470733a2f2f692e696d6775722e636f6d2f6d5a56566e334c2e706e67)](https://camo.githubusercontent.com/1e364dc548ca271248021716023f9269a24e7de50fa25809e57704a30b1168d7/68747470733a2f2f692e696d6775722e636f6d2f6d5a56566e334c2e706e67)

Android Version
---------------

[](#android-version)

If you need Android version please try this package [Aesthetic Dialogs](https://github.com/gabriel-TheCode/AestheticDialogs). Happy Coding 👨🏾‍💻

🎞️ Video Tutorial
-----------------

[](#film_strip-video-tutorial)

[![](https://camo.githubusercontent.com/95b176f80eff737c25dc60dc40c417387699fb60681b75c2fa71b1d414e79c3b/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f4b713556584c65783744552f302e6a7067)](https://youtu.be/Kq5VXLex7DU)

Installation
------------

[](#installation)

You can install the package using composer

```
$ composer require mckenziearts/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' => [
    ...
    Mckenziearts\Notify\LaravelNotifyServiceProvider::class
    ...
];
```

You can publish the configuration file and assets by running:

```
$ php artisan vendor:publish --provider="Mckenziearts\Notify\LaravelNotifyServiceProvider"
```

Now that we have published a few new files to our application we need to reload them with the following command:

```
$ composer dump-autoload
```

Usage
-----

[](#usage)

1. Add styles links with `@notifyCss`
2. Add scripts links with `@notifyJs`
3. use `notify()` helper function inside your controller to set a toast notification for info, success, warning or error
4. Include notify partial to your master layout `@include('notify::components.notify')`

If you are on Laravel 8 or greater, you can use the tag syntax.

```

```

### Basic

[](#basic)

Within your controllers, before you perform a redirect call the `notify` method with a message.

```
public function store()
{
    notify()->success('Laravel Notify is awesome!');

    return Redirect::home();
}
```

A complete example:

```

        Laravel Notify
        @notifyCss

        @notifyJs

```

### Type of notifications

[](#type-of-notifications)

Laravel Notify actually display 5 types of notifications

1. `toast` notification, (The default notification for Laravel Notify)

```
notify()->success('Welcome to Laravel Notify ⚡️') or notify()->success('Welcome to Laravel Notify ⚡️', 'My custom title')
```

2. `connectify` notification, example of basic usage

```
connectify('success', 'Connection Found', 'Success Message Here')
```

3. `drakify` (😎) notification, displays an alert only

```
drakify('success') // for success alert
or
drakify('error') // for error alert
```

4. `smilify` notification, displays a simple custom toast notification using the smiley (😊) emoticon

```
smilify('success', 'You are successfully reconnected')
```

5. `emotify` notification, displays a simple custom toast notification using a vector emoticon

```
emotify('success', 'You are awesome, your data was successfully created')
```

#### Preset Notifications

[](#preset-notifications)

If you have a specific notification that is used across multiple different places in your system, you can define it as a preset notification in your config file. This makes it easier to maintain commonly used notifications in one place. Read how to define preset messages in the [Config](#config) section below.

As an example, to use a preset notification you have defined called 'common-notification', use the following:

```
notify()->preset('common-notification')
```

You can override any of the values that are set in the config if you need to. For example, this could be useful if you have a common notification across, but you want to change the icon in one particular place that it's used without having to manually write out a new notification.

To do this, simply pass in an array that has the key of the attribute that you want to override and the value you want to override it with.

As an example, we could override the 'title' of our 'common-notification' by using the following:

```
notify()->preset('common-notification', ['title' => 'This is the overridden title'])
```

Config
------

[](#config)

Config file are located at `config/notify.php` after publishing provider element.

Some awesome stuff. To active `dark mode` update the `theme` config, or add global variable `NOTIFY_THEME` on your .env file

```
'theme' => env('NOTIFY_THEME', 'dark'),
```

You can define preset notifications in the config file using the following structure:

```
'preset-messages' => [
    'user-updated' => [
        'message' => 'The user has been updated successfully.',
        'type'    => 'success',
        'model'   => 'connect',
        'title'   => 'User Updated',
    ],
    'user-deleted' => [
        'message' => 'The user has been deleted successfully.',
        'type'    => 'success',
        'model'   => 'connect',
        'title'   => 'User Deleted',
    ],
],
```

The example above shows the config for two preset notifications: 'user-updated' and 'user-deleted'.

Change log
----------

[](#change-log)

Please see the [changelog](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](CONTRIBUTING.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Arthur Monney](https://twitter.com/MonneyArthur)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](LICENCE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

758d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/746c9c04816557a9695c7c339379bea5b0189bc3b96a64d74d4cc5913125e279?d=identicon)[yyqsg888](/maintainers/yyqsg888)

---

Top Contributors

[![mckenziearts](https://avatars.githubusercontent.com/u/14105989?v=4)](https://github.com/mckenziearts "mckenziearts (132 commits)")[![ash-jc-allen](https://avatars.githubusercontent.com/u/39652331?v=4)](https://github.com/ash-jc-allen "ash-jc-allen (1 commits)")[![CodeLover254](https://avatars.githubusercontent.com/u/15217384?v=4)](https://github.com/CodeLover254 "CodeLover254 (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![JoJo-Bear](https://avatars.githubusercontent.com/u/9674196?v=4)](https://github.com/JoJo-Bear "JoJo-Bear (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![otatechie](https://avatars.githubusercontent.com/u/30342985?v=4)](https://github.com/otatechie "otatechie (1 commits)")[![ramonpego](https://avatars.githubusercontent.com/u/6185157?v=4)](https://github.com/ramonpego "ramonpego (1 commits)")[![rogermedico](https://avatars.githubusercontent.com/u/2758290?v=4)](https://github.com/rogermedico "rogermedico (1 commits)")[![ruban-s](https://avatars.githubusercontent.com/u/44894135?v=4)](https://github.com/ruban-s "ruban-s (1 commits)")[![shailesh-ladumor](https://avatars.githubusercontent.com/u/16555999?v=4)](https://github.com/shailesh-ladumor "shailesh-ladumor (1 commits)")[![spaantje](https://avatars.githubusercontent.com/u/477362?v=4)](https://github.com/spaantje "spaantje (1 commits)")[![Temian1](https://avatars.githubusercontent.com/u/39234980?v=4)](https://github.com/Temian1 "Temian1 (1 commits)")[![youssef3wi](https://avatars.githubusercontent.com/u/21143371?v=4)](https://github.com/youssef3wi "youssef3wi (1 commits)")[![amrography](https://avatars.githubusercontent.com/u/9614340?v=4)](https://github.com/amrography "amrography (1 commits)")[![yyqsg888](https://avatars.githubusercontent.com/u/61581602?v=4)](https://github.com/yyqsg888 "yyqsg888 (1 commits)")

---

Tags

laravelnotificationlaravel-notify

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/yyqsg888-laravel-notify/health.svg)

```
[![Health](https://phpackages.com/badges/yyqsg888-laravel-notify/health.svg)](https://phpackages.com/packages/yyqsg888-laravel-notify)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
